From f3ef6e13f346d622b29804e7fb1b131dffd5a8b5 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 21 Mar 2014 02:03:34 +1300 Subject: [PATCH] Fixed experience orb self disguise --- .../disguise/disguisetypes/Disguise.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java index a8e600c8..afe053c2 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -270,8 +270,17 @@ public abstract class Disguise { packet.getIntegers().write(0, getEntity().getEntityId()); try { for (Player player : DisguiseUtilities.getPerverts(disguise)) { - if (DisguiseConfig.isViewDisguises() || getEntity() != player) { + if (getEntity() != player) { ProtocolLibrary.getProtocolManager().sendServerPacket(player, packet, false); + } else if (isSelfDisguiseVisible()) { + PacketContainer selfPacket = packet.shallowClone(); + selfPacket.getModifier().write(0, DisguiseAPI.getFakeDisguise(getEntity().getEntityId())); + try { + ProtocolLibrary.getProtocolManager().sendServerPacket((Player) getEntity(), + selfPacket, false); + } catch (InvocationTargetException e) { + e.printStackTrace(); + } } } } catch (InvocationTargetException e) {