Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 09:00:09 +01:00
Fix remapping of 1.20.5 CLICK_WINDOW_BUTTON
Dieser Commit ist enthalten in:
Ursprung
66e0453398
Commit
9c84e0dbe9
@ -159,10 +159,10 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
|
|||||||
registerWindowPropertyEnchantmentHandler(ClientboundPackets1_20_3.WINDOW_PROPERTY);
|
registerWindowPropertyEnchantmentHandler(ClientboundPackets1_20_3.WINDOW_PROPERTY);
|
||||||
registerCreativeInvAction(ServerboundPackets1_20_5.CREATIVE_INVENTORY_ACTION);
|
registerCreativeInvAction(ServerboundPackets1_20_5.CREATIVE_INVENTORY_ACTION);
|
||||||
protocol.registerServerbound(ServerboundPackets1_20_5.CLICK_WINDOW_BUTTON, wrapper -> {
|
protocol.registerServerbound(ServerboundPackets1_20_5.CLICK_WINDOW_BUTTON, wrapper -> {
|
||||||
final byte containerId = wrapper.read(Type.BYTE);
|
final byte containerId = wrapper.read(Type.VAR_INT).byteValue();
|
||||||
final byte buttonId = wrapper.read(Type.BYTE);
|
final byte buttonId = wrapper.read(Type.VAR_INT).byteValue();
|
||||||
wrapper.write(Type.VAR_INT, (int) containerId);
|
wrapper.write(Type.BYTE, containerId);
|
||||||
wrapper.write(Type.VAR_INT, (int) buttonId);
|
wrapper.write(Type.BYTE, buttonId);
|
||||||
});
|
});
|
||||||
|
|
||||||
protocol.registerClientbound(ClientboundPackets1_20_3.ADVANCEMENTS, wrapper -> {
|
protocol.registerClientbound(ClientboundPackets1_20_3.ADVANCEMENTS, wrapper -> {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren