mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-06 02:30:25 +01:00
Actually fix book opening
This commit is contained in:
parent
b3181d1429
commit
91687339bf
@ -178,7 +178,6 @@ public class InventoryPackets {
|
||||
wrapper.write(Type.VAR_INT, 0);
|
||||
wrapper.write(Type.BOOLEAN, false);
|
||||
} else if (channel.equals("minecraft:book_open") || channel.equals("book_open")) {
|
||||
wrapper.read(Type.REMAINING_BYTES);
|
||||
int hand = wrapper.read(Type.VAR_INT);
|
||||
wrapper.clearPacket();
|
||||
wrapper.setId(0x2C);
|
||||
|
@ -293,7 +293,7 @@ public class PlayerPackets {
|
||||
public void handle(PacketWrapper wrapper) throws Exception {
|
||||
String name = wrapper.get(Type.STRING, 0);
|
||||
if (name.equalsIgnoreCase("MC|BOpen")) {
|
||||
wrapper.passthrough(Type.REMAINING_BYTES); // This is so ugly, :(
|
||||
wrapper.read(Type.REMAINING_BYTES); // Not used anymore
|
||||
wrapper.write(Type.VAR_INT, 0);
|
||||
}
|
||||
if (name.equalsIgnoreCase("MC|TrList")) {
|
||||
|
Loading…
Reference in New Issue
Block a user