Don't send the packets if you are not the correct disguise!!
This commit is contained in:
parent
2df5aee8fe
commit
5fe3f03622
@ -163,7 +163,7 @@ public class FlagWatcher {
|
||||
}
|
||||
|
||||
protected void sendData(int data) {
|
||||
if (disguise.getWatcher() == null || disguise.getEntity() == null || !DisguiseAPI.isDisguised(disguise.getEntity()))
|
||||
if (disguise.getWatcher() == null || DisguiseAPI.getDisguise(disguise.getEntity()) != disguise)
|
||||
return;
|
||||
Entity entity = disguise.getEntity();
|
||||
Object value = entityValues.get(data);
|
||||
@ -234,7 +234,7 @@ public class FlagWatcher {
|
||||
if (itemStack != null && itemStack.getTypeId() != 0)
|
||||
itemToSend = CraftItemStack.asNMSCopy(itemStack);
|
||||
items[slot] = itemStack;
|
||||
if (disguise.getEntity() == null)
|
||||
if (DisguiseAPI.getDisguise(disguise.getEntity()) != disguise)
|
||||
return;
|
||||
slot++;
|
||||
if (slot > 4)
|
||||
|
Loading…
Reference in New Issue
Block a user