SteamWar/FightSystem
Archiviert
13
1

Scoreboard Health 0 Fix

Dieser Commit ist enthalten in:
Chaoscaot 2020-09-27 18:11:46 +02:00
Ursprung aedbd69e66
Commit 2d06766270

Datei anzeigen

@ -76,7 +76,7 @@ public class FightScoreboard {
objective.setDisplayName(fightTeam.getColoredName()); objective.setDisplayName(fightTeam.getColoredName());
fightTeam.getPlayers().forEach(fp -> { fightTeam.getPlayers().forEach(fp -> {
if(fp.isLiving()) if(fp.isLiving())
objective.getScore(fightTeam.getPrefix() + fp.getPlayer().getName()).setScore((int) fp.getPlayer().getHealth()); objective.getScore(fightTeam.getPrefix() + fp.getPlayer().getName()).setScore((int) Math.ceil(fp.getPlayer().getHealth()));
}); });
} }