From e267d1d3449925a465007df863895e331f07f9a3 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 16 May 2021 17:50:26 +1200 Subject: [PATCH] Null check --- .../me/libraryaddict/disguise/utilities/DisguiseUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index 63d10961..d2339e22 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -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()); }