Don't try to use the watcher if the watcher doesnt exist

This commit is contained in:
Andrew 2013-07-23 06:38:29 +12:00
parent bc08c933ca
commit dbffa801c7

View File

@ -130,6 +130,8 @@ public class FlagWatcher {
} }
protected void sendData(int data) { protected void sendData(int data) {
if (disguise.getWatcher() == null)
return;
Entity entity = disguise.getEntity(); Entity entity = disguise.getEntity();
Object value = entityValues.get(data); Object value = entityValues.get(data);
List<WatchableObject> list = new ArrayList<WatchableObject>(); List<WatchableObject> list = new ArrayList<WatchableObject>();