Fix wrong if case
This commit is contained in:
@@ -371,8 +371,8 @@ public class FlagWatcher {
|
|||||||
health = MetaIndex.LIVING_HEALTH.getDefault();
|
health = MetaIndex.LIVING_HEALTH.getDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
String name = !DisguiseConfig.isScoreboardNames() && ((PlayerDisguise) getDisguise()).hasScoreboardName() ?
|
String name = DisguiseConfig.isScoreboardNames() && ((PlayerDisguise) getDisguise()).hasScoreboardName() ?
|
||||||
((PlayerDisguise) getDisguise()).getName() : ((PlayerDisguise) getDisguise()).getScoreboardName().getPlayer();
|
((PlayerDisguise) getDisguise()).getScoreboardName().getPlayer() : ((PlayerDisguise) getDisguise()).getName();
|
||||||
|
|
||||||
ReflectionManager.setScore(player.getScoreboard(), ReflectionManager.scoreboardCrtieriaHealth, name, (int) Math.ceil(health));
|
ReflectionManager.setScore(player.getScoreboard(), ReflectionManager.scoreboardCrtieriaHealth, name, (int) Math.ceil(health));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user