Add a continue for exp disguise

This commit is contained in:
libraryaddict 2020-12-13 23:52:50 +13:00
parent 66aa68649c
commit 7abb9dd99d

View file

@ -489,10 +489,12 @@ public abstract class Disguise {
PacketContainer packet = new PacketContainer(Server.REL_ENTITY_MOVE);
packet.getIntegers().write(0, getEntity().getEntityId());
try {
for (Player player : DisguiseUtilities.getPerverts(disguise)) {
if (getEntity() != player) {
ProtocolLibrary.getProtocolManager().sendServerPacket(player, packet, false);
continue;
} else if (!isSelfDisguiseVisible() || !(getEntity() instanceof Player)) {
continue;
}