diff --git a/arclight-forge/src/main/java/io/izzel/arclight/forge/mixin/core/network/protocol/login/ServerboundCustomQueryAnswerPacketMixin_Forge.java b/arclight-forge/src/main/java/io/izzel/arclight/forge/mixin/core/network/protocol/login/ServerboundCustomQueryAnswerPacketMixin_Forge.java index 5b3f856fb..047fbb7a1 100644 --- a/arclight-forge/src/main/java/io/izzel/arclight/forge/mixin/core/network/protocol/login/ServerboundCustomQueryAnswerPacketMixin_Forge.java +++ b/arclight-forge/src/main/java/io/izzel/arclight/forge/mixin/core/network/protocol/login/ServerboundCustomQueryAnswerPacketMixin_Forge.java @@ -29,7 +29,7 @@ private static void readResponse(int id, FriendlyByteBuf buf, CallbackInfoReturn if (i >= 0 && i < MAX_PAYLOAD_SIZE) { var payload = Unpooled.buffer(i); buf.readBytes(payload); - cir.setReturnValue(new ArclightCustomQueryAnswerPayload(payload)); + cir.setReturnValue(new ArclightCustomQueryAnswerPayload(Unpooled.wrappedBuffer(Unpooled.copyBoolean(true), payload))); } else { throw new IllegalArgumentException("Payload may not be larger than 1048576 bytes"); } diff --git a/arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/network/protocol/login/ServerboundCustomQueryAnswerPacketMixin_NeoForge.java b/arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/network/protocol/login/ServerboundCustomQueryAnswerPacketMixin_NeoForge.java index 0521ee69e..7df943511 100644 --- a/arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/network/protocol/login/ServerboundCustomQueryAnswerPacketMixin_NeoForge.java +++ b/arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/network/protocol/login/ServerboundCustomQueryAnswerPacketMixin_NeoForge.java @@ -29,7 +29,7 @@ private static void readResponse(int id, FriendlyByteBuf buf, CallbackInfoReturn if (i >= 0 && i < MAX_PAYLOAD_SIZE) { var payload = Unpooled.buffer(i); buf.readBytes(payload); - cir.setReturnValue(new ArclightCustomQueryAnswerPayload(payload)); + cir.setReturnValue(new ArclightCustomQueryAnswerPayload(Unpooled.wrappedBuffer(Unpooled.copyBoolean(true), payload))); } else { throw new IllegalArgumentException("Payload may not be larger than 1048576 bytes"); }