Fix wrong if case
This commit is contained in:
parent
76d3228b51
commit
b3f8a7b24e
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user