Add a continue for exp disguise
This commit is contained in:
parent
66aa68649c
commit
7abb9dd99d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user