Added null sanity checks in the flagwatcher
This commit is contained in:
parent
897d6410d2
commit
331d254641
@ -205,6 +205,8 @@ public class FlagWatcher {
|
|||||||
protected void sendData(int data) {
|
protected void sendData(int data) {
|
||||||
if (disguise.getWatcher() == null || DisguiseAPI.getDisguise(disguise.getEntity()) != disguise)
|
if (disguise.getWatcher() == null || DisguiseAPI.getDisguise(disguise.getEntity()) != disguise)
|
||||||
return;
|
return;
|
||||||
|
if (!entityValues.containsKey(data) || entityValues.get(data) == 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>();
|
||||||
|
Loading…
Reference in New Issue
Block a user