3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-07-01 13:18:02 +02:00

Fix remapping of 1.20.5 CLICK_WINDOW_BUTTON

Dieser Commit ist enthalten in:
Gero 2024-04-27 21:31:49 +02:00
Ursprung c4d0c7ab8f
Commit bf7ed14506

Datei anzeigen

@ -66,10 +66,10 @@ public final class BlockItemPacketRewriter1_20_5 extends BackwardsStructuredItem
registerWindowPropertyEnchantmentHandler(ClientboundPackets1_20_5.WINDOW_PROPERTY);
registerCreativeInvAction(ServerboundPackets1_20_3.CREATIVE_INVENTORY_ACTION);
protocol.registerServerbound(ServerboundPackets1_20_3.CLICK_WINDOW_BUTTON, wrapper -> {
final int containerId = wrapper.read(Type.VAR_INT);
final int buttonId = wrapper.read(Type.VAR_INT);
wrapper.write(Type.BYTE, (byte) containerId);
wrapper.write(Type.BYTE, (byte) buttonId);
final int containerId = wrapper.read(Type.BYTE) & 0xFF;
final int buttonId = wrapper.read(Type.BYTE) & 0xFF;
wrapper.write(Type.VAR_INT, containerId);
wrapper.write(Type.VAR_INT, buttonId);
});
protocol.registerClientbound(ClientboundPackets1_20_5.SPAWN_PARTICLE, wrapper -> {