diff options
author | MT-Modder <thomas.waits148@gmail.com> | 2015-02-05 12:29:37 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-03-11 19:00:25 -0400 |
commit | 8bb1c8288b45182ed8e1496d1ecc322ed84854a9 (patch) | |
tree | 217d097f65e44f06abea187d865eef916686d280 /item_names.lua | |
parent | 75f719507e42d4329ec67e4ae9dd9e8facea3b25 (diff) |
Add item_names support for Better "HUD"
Diffstat (limited to 'item_names.lua')
-rw-r--r-- | item_names.lua | 3 |
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({ |