From 97d3e6ba78399fd99e71e4bc9014ea7c6e6fbdc7 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 3 Feb 2019 04:26:02 +0000 Subject: [PATCH] Fix gauges --- mods/pvp/gauges/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/pvp/gauges/init.lua b/mods/pvp/gauges/init.lua index 00c5a09..948164e 100644 --- a/mods/pvp/gauges/init.lua +++ b/mods/pvp/gauges/init.lua @@ -49,8 +49,9 @@ function gauges.add_HP_gauge(name) if player then local pos = player:get_pos() local ent = minetest.add_entity(pos, "gauges:hp_bar") + assert(ent) if ent ~= nil then - ent:set_attach(player, "", {x = 0, y = 9, z = 0}, {x = 0, y = 0, z = 0}) + ent:set_attach(player, "", {x = 0, y = 19, z = 0}, {x = 0, y = 0, z = 0}) ent = ent:get_luaentity() ent.wielder = player:get_player_name() end