Update adventure to 4.19.0

The update only includes a new configuration for MiniMessage,
specifically one to prevent it from emitting virtual components.
As virtual components break the generated component tree, items quickly
become unstackable with items generated before adventure 4.18.

Plugin developers may construct their own mini message instance which
will emit virtual components if they so choose.
This commit is contained in:
Bjarne Koll 2025-02-17 16:56:42 +01:00
parent 9b1798d643
commit 8cbf656850
No known key found for this signature in database
GPG Key ID: 9576DAF3FDDB088F
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ java {
val annotationsVersion = "26.0.1"
val bungeeCordChatVersion = "1.20-R0.2"
val adventureVersion = "4.18.0"
val adventureVersion = "4.19.0"
val slf4jVersion = "2.0.9"
val log4jVersion = "2.17.1"

View File

@ -10,7 +10,7 @@ public class MiniMessageProviderImpl implements MiniMessage.Provider {
@Override
public @NotNull MiniMessage miniMessage() {
return MiniMessage.builder().build();
return MiniMessage.builder().emitVirtuals(false).build();
}
@Override