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); PacketContainer packet = new PacketContainer(Server.REL_ENTITY_MOVE);
packet.getIntegers().write(0, getEntity().getEntityId()); packet.getIntegers().write(0, getEntity().getEntityId());
try { try {
for (Player player : DisguiseUtilities.getPerverts(disguise)) { for (Player player : DisguiseUtilities.getPerverts(disguise)) {
if (getEntity() != player) { if (getEntity() != player) {
ProtocolLibrary.getProtocolManager().sendServerPacket(player, packet, false); ProtocolLibrary.getProtocolManager().sendServerPacket(player, packet, false);
continue;
} else if (!isSelfDisguiseVisible() || !(getEntity() instanceof Player)) { } else if (!isSelfDisguiseVisible() || !(getEntity() instanceof Player)) {
continue; continue;
} }