Use read instead of passthrough

This commit is contained in:
KennyTV 2019-03-04 10:30:06 +01:00
parent 9d0331e190
commit 687de97fcd

View File

@ -177,7 +177,7 @@ public class InventoryPackets {
wrapper.passthrough(Type.INT); // Maximum number of trade uses
}
} else if (channel.equals("minecraft:book_open") || channel.equals("book_open")) {
wrapper.passthrough(Type.REMAINING_BYTES);
wrapper.read(Type.REMAINING_BYTES);
int hand = wrapper.read(Type.VAR_INT);
wrapper.clearPacket();
wrapper.setId(0x2C);