From 7916039fb20f80c92c1a1e518482f7c03a3b525a Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 30 Jan 2022 19:54:48 +1300 Subject: [PATCH] Try fix a weird issue where setting color on dead entities becomes really weird --- .../me/libraryaddict/disguise/disguisetypes/FlagWatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java b/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java index f411a32e..044cf49d 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java @@ -734,7 +734,7 @@ public class FlagWatcher { this.glowColor = glowColor; - if (!getDisguise().isDisguiseInUse() || getDisguise().getEntity() == null) { + if (!getDisguise().isDisguiseInUse() || getDisguise().getEntity() == null || !getDisguise().getEntity().isValid()) { return; }