From 502437546690a1ff789bbe978022de6be75bccd9 Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Sun, 2 Sep 2018 15:13:09 -0300 Subject: [PATCH] Fix item particle --- .../protocols/protocol1_13_1to1_13/packets/WorldPackets.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13_1to1_13/packets/WorldPackets.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13_1to1_13/packets/WorldPackets.java index 121c124aa..4e91dfee5 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13_1to1_13/packets/WorldPackets.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13_1to1_13/packets/WorldPackets.java @@ -172,9 +172,11 @@ public class WorldPackets { @Override public void handle(PacketWrapper wrapper) throws Exception { int id = wrapper.get(Type.INT, 0); - if(id == 3 || id == 20){ + if (id == 3 || id == 20) { int data = wrapper.passthrough(Type.VAR_INT); wrapper.set(Type.VAR_INT, 0, Protocol1_13_1To1_13.getNewBlockStateId(data)); + } else if (id == 27) { + InventoryPackets.toClient(wrapper.passthrough(Type.FLAT_ITEM)); } } });