From 0b7e4381288a0edf2bb4ba10eefb0a397ebaa1e2 Mon Sep 17 00:00:00 2001 From: Gerrygames Date: Mon, 22 Oct 2018 11:29:22 +0200 Subject: [PATCH] fix #1044 --- .../protocol1_13_1to1_13/Protocol1_13_1To1_13.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13_1to1_13/Protocol1_13_1To1_13.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13_1to1_13/Protocol1_13_1To1_13.java index 84cebc820..ff162030d 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13_1to1_13/Protocol1_13_1To1_13.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13_1to1_13/Protocol1_13_1To1_13.java @@ -44,6 +44,13 @@ public class Protocol1_13_1To1_13 extends Protocol { public void registerMap() { map(Type.FLAT_ITEM); map(Type.BOOLEAN); + handler(new PacketHandler() { + @Override + public void handle(PacketWrapper wrapper) throws Exception { + Item item = wrapper.get(Type.FLAT_ITEM, 0); + InventoryPackets.toServer(item); + } + }); handler(new PacketHandler() { @Override public void handle(PacketWrapper wrapper) throws Exception {