Add another check for sending data

This commit is contained in:
Andrew 2013-08-07 22:51:14 +12:00
parent fc9337504c
commit 7d5b72b9c5

View File

@ -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);