diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 22:10:20 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 22:42:02 -0400 |
commit | 86ad3e7c6a37699f7f8297a387bf08af74e36629 (patch) | |
tree | dc368b1eaf2cc09b9df2200250890b3038d8cf2d /unified_inventory/item_names.lua | |
parent | 888b0ebfec8c2eff9015163549a7e47443cb8665 (diff) | |
download | dreambuilder_modpack-86ad3e7c6a37699f7f8297a387bf08af74e36629.tar dreambuilder_modpack-86ad3e7c6a37699f7f8297a387bf08af74e36629.tar.gz dreambuilder_modpack-86ad3e7c6a37699f7f8297a387bf08af74e36629.tar.bz2 dreambuilder_modpack-86ad3e7c6a37699f7f8297a387bf08af74e36629.tar.xz dreambuilder_modpack-86ad3e7c6a37699f7f8297a387bf08af74e36629.zip |
Update all core mods
Diffstat (limited to 'unified_inventory/item_names.lua')
-rw-r--r-- | unified_inventory/item_names.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unified_inventory/item_names.lua b/unified_inventory/item_names.lua index 2c92d65..243b938 100644 --- a/unified_inventory/item_names.lua +++ b/unified_inventory/item_names.lua @@ -6,12 +6,15 @@ local dtimes = {} local dlimit = 3 -- HUD element will be hidden after this many seconds local air_hud_mod = minetest.get_modpath("4air") local hud_mod = minetest.get_modpath("hud") +local hudbars_mod = minetest.get_modpath("hudbars") local function set_hud(player) local player_name = player:get_player_name() local off = {x=0, y=-70} if air_hud_mod or hud_mod then off.y = off.y - 20 + elseif hudbars_mod then + off.y = off.y + 13 end huds[player_name] = player:hud_add({ hud_elem_type = "text", |