Browse Source

Corrige emplacement de la barre gauges

- Place à nouveau la barre au dessus de la tête du joueur.
master
sys4 1 year ago
parent
commit
e1534c2139
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      init.lua

+ 1
- 1
init.lua View File

@@ -48,7 +48,7 @@ local function add_HP_gauge(name)
local ent = minetest.add_entity(pos, "gauges:hp_bar")

if ent ~= nil then
ent:set_attach(player, "", {x = 0, y = 10, z = 0}, {x = 0, y = 0, z = 0})
ent:set_attach(player, "", {x = 0, y = 18, z = 0}, {x = 0, y = 0, z = 0})
ent = ent:get_luaentity()
ent.wielder = player:get_player_name()
end


Loading…
Cancel
Save