Fix wrong if case

This commit is contained in:
libraryaddict 2021-02-07 18:40:11 +13:00
parent 76d3228b51
commit b3f8a7b24e

View File

@ -371,8 +371,8 @@ public class FlagWatcher {
health = MetaIndex.LIVING_HEALTH.getDefault();
}
String name = !DisguiseConfig.isScoreboardNames() && ((PlayerDisguise) getDisguise()).hasScoreboardName() ?
((PlayerDisguise) getDisguise()).getName() : ((PlayerDisguise) getDisguise()).getScoreboardName().getPlayer();
String name = DisguiseConfig.isScoreboardNames() && ((PlayerDisguise) getDisguise()).hasScoreboardName() ?
((PlayerDisguise) getDisguise()).getScoreboardName().getPlayer() : ((PlayerDisguise) getDisguise()).getName();
ReflectionManager.setScore(player.getScoreboard(), ReflectionManager.scoreboardCrtieriaHealth, name, (int) Math.ceil(health));
}