SteamWar/FightSystem
Archiviert
13
1

Scoreboard 0 Health Fix #191

Manuell gemergt
Lixfel hat 1 Commits von scoreboard-0-fix nach master 2020-09-27 19:15:03 +02:00 zusammengeführt
Nur Änderungen aus Commit 2d06766270 werden angezeigt - Alle Commits anzeigen

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()));
}); });
} }