Fix a scoreboard config issue

This commit is contained in:
libraryaddict 2021-02-05 04:30:44 +13:00
parent 9a1a6ae08e
commit 6301571350

View File

@ -328,8 +328,8 @@ public class FlagWatcher {
if (!sendAllCustom && getDisguise().isPlayerDisguise() && index == MetaIndex.LIVING_HEALTH) {
float health = ((Number) watch.getRawValue()).floatValue();
String name = DisguiseConfig.isScoreboardNames() ? ((PlayerDisguise) getDisguise()).getName() :
((PlayerDisguise) getDisguise()).getScoreboardName().getPlayer();
String name = DisguiseConfig.isScoreboardNames() ? ((PlayerDisguise) getDisguise()).getScoreboardName().getPlayer() :
((PlayerDisguise) getDisguise()).getName();
ReflectionManager.setScore(player.getScoreboard(), ReflectionManager.scoreboardCrtieriaHealth, name, (int) Math.ceil(health));
}