mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 03:57:03 +00:00
Added null sanity checks in the flagwatcher
This commit is contained in:
parent
897d6410d2
commit
331d254641
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue