Add another check for sending data
This commit is contained in:
parent
fc9337504c
commit
7d5b72b9c5
@ -163,7 +163,7 @@ public class FlagWatcher {
|
||||
}
|
||||
|
||||
protected void sendData(int data) {
|
||||
if (disguise.getWatcher() == null || !DisguiseAPI.isDisguised(disguise.getEntity()))
|
||||
if (disguise.getWatcher() == null || disguise.getEntity() == null || !DisguiseAPI.isDisguised(disguise.getEntity()))
|
||||
return;
|
||||
Entity entity = disguise.getEntity();
|
||||
Object value = entityValues.get(data);
|
||||
|
Loading…
Reference in New Issue
Block a user