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) {
|
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;
|
return;
|
||||||
Entity entity = disguise.getEntity();
|
Entity entity = disguise.getEntity();
|
||||||
Object value = entityValues.get(data);
|
Object value = entityValues.get(data);
|
||||||
@ -234,7 +234,7 @@ public class FlagWatcher {
|
|||||||
if (itemStack != null && itemStack.getTypeId() != 0)
|
if (itemStack != null && itemStack.getTypeId() != 0)
|
||||||
itemToSend = CraftItemStack.asNMSCopy(itemStack);
|
itemToSend = CraftItemStack.asNMSCopy(itemStack);
|
||||||
items[slot] = itemStack;
|
items[slot] = itemStack;
|
||||||
if (disguise.getEntity() == null)
|
if (DisguiseAPI.getDisguise(disguise.getEntity()) != disguise)
|
||||||
return;
|
return;
|
||||||
slot++;
|
slot++;
|
||||||
if (slot > 4)
|
if (slot > 4)
|
||||||
|
Loading…
Reference in New Issue
Block a user