Try fix a weird issue where setting color on dead entities becomes really weird

This commit is contained in:
libraryaddict 2022-01-30 19:54:48 +13:00
parent ebd515e7df
commit 7916039fb2

View File

@ -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;
}