summaryrefslogtreecommitdiff
path: root/item_names.lua
diff options
context:
space:
mode:
Diffstat (limited to 'item_names.lua')
-rw-r--r--item_names.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/item_names.lua b/item_names.lua
index 31c2b3f..ba31396 100644
--- a/item_names.lua
+++ b/item_names.lua
@@ -5,6 +5,7 @@ local huds = {}
local dtimes = {}
local dlimit = 3 -- hud will be hidden after this much seconds
local airhudmod = minetest.get_modpath("4air")
+local hudmod = minetest.get_modpath("hud")
local function get_desc(item)
if minetest.registered_nodes[item] then return minetest.registered_nodes[item]["description"] end
@@ -18,7 +19,7 @@ minetest.register_on_joinplayer(function(player)
minetest.after(0.0, function()
local player_name = player:get_player_name()
local off = {x=0, y=-70}
- if airhudmod then
+ if airhudmod or hudmod then
off.y=off.y-20
end
huds[player_name] = player:hud_add({