Serverbound container ack is unsigned byte

This commit is contained in:
Nassim Jahnke 2024-08-16 20:45:04 +02:00
parent 3afdefc055
commit b4819fdca9
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -116,7 +116,7 @@ public final class ItemPacketRewriter1_17 extends ItemRewriter<ClientboundPacket
short inventoryId = (short) ((id >> 16) & 0xFF);
short confirmationId = (short) (id & 0xFFFF);
PacketWrapper packet = wrapper.create(ServerboundPackets1_16_2.CONTAINER_ACK);
packet.write(Types.UNSIGNED_BYTE, inventoryId);
packet.write(Types.BYTE, (byte) inventoryId);
packet.write(Types.SHORT, confirmationId);
packet.write(Types.BOOLEAN, true); // Accept
packet.sendToServer(Protocol1_16_4To1_17.class);