Null check
This commit is contained in:
parent
d306ab0d85
commit
e267d1d344
@ -123,7 +123,7 @@ public class DisguiseUtilities {
|
|||||||
team.setOption(Option.COLLISION_RULE, OptionStatus.NEVER);
|
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());
|
team.setColor(disguise.getWatcher().getGlowColor());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user