mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +00:00
Add another check for sending data
This commit is contained in:
parent
fc9337504c
commit
7d5b72b9c5
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue