oh stupid meeeeeeeee

This commit is contained in:
Casey 2023-10-14 13:32:05 +03:00
parent 00405645f7
commit 3cdeac3988
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ local function entityBox(ent)
_hp_txt = hp_txt,
update = function(self, entity)
self._cube.setPosition(entity.x - 0.25, entity.y - 0.25, entity.z - 0.25)
self._hpbar.setPosition(entity, entity.y + 0.5, entity.z)
self._hpbar.setPosition(entity.x, entity.y + 0.5, entity.z)
self._hp_rect_fg.setSize(2 * entity.health / entity.maxHealth, 0.25)
self._hp_txt.setText(string.format("%s (%.1f/%.1f)", entity.name, entity.health, entity.maxHealth))
end,