Fix vanilla components not being translated (#9893)
* Fix vanilla components not being translated * Add nullability check, simplify adventure component encoding Changes suggested by @jpenilla
This commit is contained in:
@@ -9,7 +9,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
--- a/src/main/java/net/minecraft/network/FriendlyByteBuf.java
|
||||
+++ b/src/main/java/net/minecraft/network/FriendlyByteBuf.java
|
||||
@@ -0,0 +0,0 @@ public class FriendlyByteBuf extends ByteBuf {
|
||||
return this.writeWithCodec(NbtOps.INSTANCE, ComponentSerialization.CODEC, text);
|
||||
return this.writeWithCodec(NbtOps.INSTANCE, ComponentSerialization.localizedCodec(this.adventure$locale), text);
|
||||
// Paper end - adventure
|
||||
}
|
||||
+ // Paper start - deprecated Tab List & Title APIs
|
||||
|
||||
Reference in New Issue
Block a user