From c63a08eca41b4411200f52a7f3e21ffe3aabc35e Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 30 Nov 2013 22:22:33 +1300 Subject: [PATCH] Finally isolated the packet for 'Send armor flying everywhere' --- .../disguise/utilities/PacketsManager.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/utilities/PacketsManager.java b/src/me/libraryaddict/disguise/utilities/PacketsManager.java index 424907f4..35c1c76d 100644 --- a/src/me/libraryaddict/disguise/utilities/PacketsManager.java +++ b/src/me/libraryaddict/disguise/utilities/PacketsManager.java @@ -64,7 +64,7 @@ public class PacketsManager { Packets.Server.REL_ENTITY_MOVE_LOOK, Packets.Server.ENTITY_LOOK, Packets.Server.ENTITY_TELEPORT, Packets.Server.ADD_EXP_ORB, Packets.Server.VEHICLE_SPAWN, Packets.Server.MOB_SPAWN, Packets.Server.ENTITY_PAINTING, Packets.Server.COLLECT, Packets.Server.UPDATE_ATTRIBUTES, - Packets.Server.ENTITY_EQUIPMENT, Packets.Server.BED) { + Packets.Server.ENTITY_EQUIPMENT, Packets.Server.BED, Packets.Server.ENTITY_STATUS) { @Override public void onPacketSending(PacketEvent event) { final Player observer = event.getPlayer(); @@ -1209,6 +1209,15 @@ public class PacketsManager { } break; } + + case Packets.Server.ENTITY_STATUS: + + { + if (packets[0].getBytes().read(0) == (byte) 3) { + packets = new PacketContainer[0]; + } + } + default: break; }