Fix a scoreboard config issue
This commit is contained in:
parent
9a1a6ae08e
commit
6301571350
@ -328,8 +328,8 @@ public class FlagWatcher {
|
|||||||
if (!sendAllCustom && getDisguise().isPlayerDisguise() && index == MetaIndex.LIVING_HEALTH) {
|
if (!sendAllCustom && getDisguise().isPlayerDisguise() && index == MetaIndex.LIVING_HEALTH) {
|
||||||
float health = ((Number) watch.getRawValue()).floatValue();
|
float health = ((Number) watch.getRawValue()).floatValue();
|
||||||
|
|
||||||
String name = DisguiseConfig.isScoreboardNames() ? ((PlayerDisguise) getDisguise()).getName() :
|
String name = DisguiseConfig.isScoreboardNames() ? ((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