From a9bec1ef937982cf762be3cd8f94ce99cc2eb9de Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 29 Oct 2020 01:49:05 +1300 Subject: [PATCH] Fix assumed player self disguise when doing exp orb, fixes #519 --- .../java/me/libraryaddict/disguise/disguisetypes/Disguise.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java index 0e10bb01..24aa8485 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -493,7 +493,7 @@ public abstract class Disguise { for (Player player : DisguiseUtilities.getPerverts(disguise)) { if (getEntity() != player) { ProtocolLibrary.getProtocolManager().sendServerPacket(player, packet, false); - } else if (!isSelfDisguiseVisible()) { + } else if (!isSelfDisguiseVisible() || !(getEntity() instanceof Player)) { continue; }