From e78eae2df01baf1742b988de7fdbd3a1b0ea4792 Mon Sep 17 00:00:00 2001 From: Leximon <39879662+Leximon@users.noreply.github.com> Date: Wed, 27 Mar 2024 17:47:42 +0100 Subject: [PATCH] fix OpenScreenPayload title being decoded but not encoded (#3668) --- .../java/net/fabricmc/fabric/impl/screenhandler/Networking.java | 1 + 1 file changed, 1 insertion(+) diff --git a/fabric-screen-handler-api-v1/src/main/java/net/fabricmc/fabric/impl/screenhandler/Networking.java b/fabric-screen-handler-api-v1/src/main/java/net/fabricmc/fabric/impl/screenhandler/Networking.java index 7102b0c46a..1b23bf146b 100644 --- a/fabric-screen-handler-api-v1/src/main/java/net/fabricmc/fabric/impl/screenhandler/Networking.java +++ b/fabric-screen-handler-api-v1/src/main/java/net/fabricmc/fabric/impl/screenhandler/Networking.java @@ -103,6 +103,7 @@ private static OpenScreenPayload fromBuf(RegistryByteBuf buf) { private void write(RegistryByteBuf buf) { buf.writeIdentifier(this.identifier); buf.writeByte(this.syncId); + TextCodecs.REGISTRY_PACKET_CODEC.encode(buf, this.title); this.innerCodec.encode(buf, this.data); }