Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 14:30:17 +01:00
Update to Adventure 4.1.1 (#1410)
* Update to Adventure 4.0.0 * Update to 4.0.1 * Update again, I guess.
Dieser Commit ist enthalten in:
Ursprung
b02bc33393
Commit
7f5fac38c6
@ -137,21 +137,21 @@
|
|||||||
<version>2.1.3</version>
|
<version>2.1.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.kyoripowered.adventure</groupId>
|
<groupId>net.kyori</groupId>
|
||||||
<artifactId>adventure-api</artifactId>
|
<artifactId>adventure-api</artifactId>
|
||||||
<version>557865caef</version>
|
<version>4.1.1</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.kyoripowered.adventure</groupId>
|
<groupId>net.kyori</groupId>
|
||||||
<artifactId>adventure-text-serializer-gson</artifactId>
|
<artifactId>adventure-text-serializer-gson</artifactId>
|
||||||
<version>557865caef</version>
|
<version>4.1.1</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.kyoripowered.adventure</groupId>
|
<groupId>net.kyori</groupId>
|
||||||
<artifactId>adventure-text-serializer-legacy</artifactId>
|
<artifactId>adventure-text-serializer-legacy</artifactId>
|
||||||
<version>557865caef</version>
|
<version>4.1.1</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -101,7 +101,7 @@ public class BasicItemTranslator extends NbtItemStackTranslator {
|
|||||||
if (message.startsWith("§r")) {
|
if (message.startsWith("§r")) {
|
||||||
message = message.replaceFirst("§r", "");
|
message = message.replaceFirst("§r", "");
|
||||||
}
|
}
|
||||||
Component component = TextComponent.of(message);
|
Component component = Component.text(message);
|
||||||
return GsonComponentSerializer.gson().serialize(component);
|
return GsonComponentSerializer.gson().serialize(component);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren