From 6cd5e9754218864870a88a7587eccc32e4353ddc Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sun, 13 Oct 2019 19:47:56 +0200 Subject: [PATCH] 5.x compatibility, drop 0.4.x support (#2) --- README.md | 4 +--- init.lua | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d062c9d..0943b8c 100644 --- a/README.md +++ b/README.md @@ -60,9 +60,7 @@ on that line. ## Version compatibility -Gauges is currently primarily tested with Minetest 0.4.17. -It may or may not work with newer or older versions. Issues arising in older -versions than 0.4.17 will generally not be fixed. +Gauges requires Minetest 5.0.0 or newer to work as expected. ## License diff --git a/init.lua b/init.lua index 11c776f..c7afcbb 100644 --- a/init.lua +++ b/init.lua @@ -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 = 19, z = 0}, {x = 0, y = 0, z = 0}) ent = ent:get_luaentity() ent.wielder = player:get_player_name() end