Null check

This commit is contained in:
libraryaddict 2021-05-16 17:50:26 +12:00
parent d306ab0d85
commit e267d1d344

@ -123,7 +123,7 @@ public class DisguiseUtilities {
team.setOption(Option.COLLISION_RULE, OptionStatus.NEVER);
}
if (disguise.getWatcher().getGlowColor() != team.getColor()) {
if (disguise.getWatcher().getGlowColor() != null && disguise.getWatcher().getGlowColor() != team.getColor()) {
team.setColor(disguise.getWatcher().getGlowColor());
}