simplified combat log npc title

This commit is contained in:
NewGarbo 2015-11-26 06:21:01 +00:00
parent f92849f796
commit 972a2d151a

View File

@ -63,7 +63,7 @@ public class CombatLogNPC
_userDataPath = userDataPath;
_disguiseManager = disguiseManager;
_hologram = new Hologram(hologramManager, player.getEyeLocation().add(0, 0.65, 0), C.cYellow + UtilTime.MakeStr(NPCManager.COMBAT_LOG_DURATION) + C.cWhite + " Seconds left before despawn");
_hologram = new Hologram(hologramManager, player.getEyeLocation().add(0, 1, 0), C.cYellow + UtilTime.MakeStr(NPCManager.COMBAT_LOG_DURATION) + C.cWhite + " Seconds left before despawn");
_spawnDate = 0;
_endingTime = System.currentTimeMillis() + NPCManager.COMBAT_LOG_DURATION;
_spawnHealth = player.getHealth();
@ -115,7 +115,7 @@ public class CombatLogNPC
public void update()
{
_hologram.setText(C.cYellow + UtilTime.MakeStr(UtilMath.clamp(_endingTime - System.currentTimeMillis(), 0, 100000000)) + C.cWhite + " left before despawn");
_hologram.setText(UtilTime.MakeStr(Math.min(_endingTime - System.currentTimeMillis(), 0)));
}
/**