Respect the config option

This commit is contained in:
libraryaddict 2021-05-16 17:54:06 +12:00
parent e267d1d344
commit 9604e151f5

View file

@ -119,7 +119,7 @@ public class DisguiseUtilities {
team.setOption(Option.NAME_TAG_VISIBILITY, nameVisible ? OptionStatus.ALWAYS : OptionStatus.NEVER); team.setOption(Option.NAME_TAG_VISIBILITY, nameVisible ? OptionStatus.ALWAYS : OptionStatus.NEVER);
} }
if (team.getOption(Option.COLLISION_RULE) != OptionStatus.NEVER) { if (DisguiseConfig.isModifyCollisions() && team.getOption(Option.COLLISION_RULE) != OptionStatus.NEVER) {
team.setOption(Option.COLLISION_RULE, OptionStatus.NEVER); team.setOption(Option.COLLISION_RULE, OptionStatus.NEVER);
} }