Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
Use Jitpack for Adventure to fix boolean string serialization
Fixes #2596
Dieser Commit ist enthalten in:
Ursprung
a257211b01
Commit
362a21a4b1
@ -11,7 +11,7 @@
|
|||||||
<artifactId>connector</artifactId>
|
<artifactId>connector</artifactId>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<adventure.version>4.9.2</adventure.version>
|
<adventure.version>3d6eaaf63f</adventure.version>
|
||||||
<fastutil.version>8.5.2</fastutil.version>
|
<fastutil.version>8.5.2</fastutil.version>
|
||||||
<jackson.version>2.12.4</jackson.version>
|
<jackson.version>2.12.4</jackson.version>
|
||||||
<netty.version>4.1.66.Final</netty.version>
|
<netty.version>4.1.66.Final</netty.version>
|
||||||
@ -160,6 +160,10 @@
|
|||||||
<groupId>com.github.steveice10</groupId>
|
<groupId>com.github.steveice10</groupId>
|
||||||
<artifactId>mcauthlib</artifactId>
|
<artifactId>mcauthlib</artifactId>
|
||||||
</exclusion>
|
</exclusion>
|
||||||
|
<exclusion> <!-- TEMPORARY -->
|
||||||
|
<groupId>net.kyori</groupId>
|
||||||
|
<artifactId>*</artifactId>
|
||||||
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -223,7 +227,20 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
<!-- Adventure text serialization -->
|
<!-- Adventure text serialization -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.kyori</groupId>
|
<groupId>com.github.KyoriPowered.adventure</groupId>
|
||||||
|
<artifactId>adventure-text-serializer-gson</artifactId> <!-- TEMPORARY until https://github.com/KyoriPowered/adventure/commit/3d6eaaf63f44ddd981a4b3bbb1e0018aa6252da8 is in release -->
|
||||||
|
<version>${adventure.version}</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.KyoriPowered.adventure</groupId>
|
||||||
|
<artifactId>adventure-text-serializer-gson-legacy-impl</artifactId> <!-- TEMPORARY until https://github.com/KyoriPowered/adventure/commit/3d6eaaf63f44ddd981a4b3bbb1e0018aa6252da8 is in release -->
|
||||||
|
<version>${adventure.version}</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<!-- <groupId>net.kyori</groupId>-->
|
||||||
|
<groupId>com.github.KyoriPowered.adventure</groupId>
|
||||||
<artifactId>adventure-text-serializer-legacy</artifactId>
|
<artifactId>adventure-text-serializer-legacy</artifactId>
|
||||||
<version>${adventure.version}</version>
|
<version>${adventure.version}</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
|
@ -56,10 +56,10 @@ public class BasicItemTranslator extends NbtItemStackTranslator {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ListTag loreTag = displayTag.get("Lore");
|
Tag loreTag = displayTag.get("Lore");
|
||||||
if (loreTag != null) {
|
if (loreTag instanceof ListTag listTag) {
|
||||||
List<Tag> lore = new ArrayList<>();
|
List<Tag> lore = new ArrayList<>();
|
||||||
for (Tag tag : loreTag.getValue()) {
|
for (Tag tag : listTag.getValue()) {
|
||||||
if (!(tag instanceof StringTag)) continue;
|
if (!(tag instanceof StringTag)) continue;
|
||||||
lore.add(new StringTag("", MessageTranslator.convertMessageLenient(((StringTag) tag).getValue(), session.getLocale())));
|
lore.add(new StringTag("", MessageTranslator.convertMessageLenient(((StringTag) tag).getValue(), session.getLocale())));
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren