Fix a small issue with Future Disguises
This commit is contained in:
parent
e8725b38ab
commit
fa30ba1e16
@ -628,6 +628,22 @@ public class DisguiseManager extends MiniPlugin implements IPacketHandler
|
||||
{
|
||||
entry.getKey().setEntity(entity);
|
||||
|
||||
boolean cancel = entry.getValue().length == 0;
|
||||
|
||||
for (Player player : entry.getValue())
|
||||
{
|
||||
if (player == owner)
|
||||
{
|
||||
cancel = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (cancel)
|
||||
{
|
||||
packetInfo.setCancelled(true);
|
||||
}
|
||||
|
||||
disguise(entry.getKey(), false, entry.getValue());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user