From 3549a823cb70c149ddd9a3a48a8c19b7d9fb3bc2 Mon Sep 17 00:00:00 2001 From: Myles Date: Tue, 22 Mar 2016 12:07:43 +0000 Subject: [PATCH] Don't move when relative --- .../protocol1_9to1_8/packets/EntityPackets.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/EntityPackets.java b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/EntityPackets.java index 13ec3fd75..dfd6df7cf 100644 --- a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/EntityPackets.java +++ b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/EntityPackets.java @@ -140,21 +140,6 @@ public class EntityPackets { map(Type.BYTE, toNewShort); // 3 - Z map(Type.BOOLEAN); // 4 - On Ground - - handler(new PacketHandler() { - @Override - public void handle(PacketWrapper wrapper) throws Exception { - int entityID = wrapper.get(Type.VAR_INT, 0); - if (((ViaVersionPlugin) ViaVersion.getInstance()).isHologramPatch()) { - EntityTracker tracker = wrapper.user().get(EntityTracker.class); - if (tracker.getKnownHolograms().contains(entityID)) { - Short newValue = wrapper.get(Type.SHORT, 1); - newValue = (short) (newValue + (((ViaVersionPlugin) ViaVersion.getInstance()).getHologramYOffset())); - wrapper.set(Type.SHORT, 1, newValue); - } - } - } - }); } }); // Entity Equipment Packet