simplified combat log npc title
This commit is contained in:
parent
f92849f796
commit
972a2d151a
@ -63,7 +63,7 @@ public class CombatLogNPC
|
|||||||
_userDataPath = userDataPath;
|
_userDataPath = userDataPath;
|
||||||
|
|
||||||
_disguiseManager = disguiseManager;
|
_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;
|
_spawnDate = 0;
|
||||||
_endingTime = System.currentTimeMillis() + NPCManager.COMBAT_LOG_DURATION;
|
_endingTime = System.currentTimeMillis() + NPCManager.COMBAT_LOG_DURATION;
|
||||||
_spawnHealth = player.getHealth();
|
_spawnHealth = player.getHealth();
|
||||||
@ -115,7 +115,7 @@ public class CombatLogNPC
|
|||||||
|
|
||||||
public void update()
|
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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user