From 84919eeea5b2438b3afa2478a4ae542246a4fdfd Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 12 Jul 2013 08:33:17 +1200 Subject: [PATCH] Stop the disguised recieving packets --- src/me/libraryaddict/disguise/LibsDisguises.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/me/libraryaddict/disguise/LibsDisguises.java b/src/me/libraryaddict/disguise/LibsDisguises.java index 0a94b2f7..9febda57 100644 --- a/src/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/me/libraryaddict/disguise/LibsDisguises.java @@ -96,6 +96,8 @@ public class LibsDisguises extends JavaPlugin implements Listener { Player observer = event.getPlayer(); StructureModifier entityModifer = event.getPacket().getEntityModifier(observer.getWorld()); org.bukkit.entity.Entity entity = entityModifer.read((Packets.Server.COLLECT == event.getPacketID() ? 1 : 0)); + if (entity == observer) + return; if (DisguiseAPI.isDisguised(entity)) { Disguise disguise = DisguiseAPI.getDisguise(entity); if (event.getPacketID() == 44) {