Change mod name to “hudbars” in source code ... at least partially

This commit is contained in:
Wuzzy 2015-02-04 01:14:47 +01:00
parent 2a2db9ab9c
commit 8a9d81303c

View File

@ -68,9 +68,9 @@ if minetest.get_modpath("3d_armor") ~= nil then
end end
--load custom settings --load custom settings
local set = io.open(minetest.get_modpath("hud").."/hud.conf", "r") local set = io.open(minetest.get_modpath("hudbars").."/hud.conf", "r")
if set then if set then
dofile(minetest.get_modpath("hud").."/hud.conf") dofile(minetest.get_modpath("hudbars").."/hud.conf")
set:close() set:close()
else else
if not HUD_ENABLE_HUNGER then if not HUD_ENABLE_HUNGER then
@ -176,8 +176,8 @@ function hud.set_armor()
end end
if HUD_ENABLE_HUNGER then dofile(minetest.get_modpath("hud").."/hunger.lua") end if HUD_ENABLE_HUNGER then dofile(minetest.get_modpath("hudbars").."/hunger.lua") end
if HUD_SHOW_ARMOR then dofile(minetest.get_modpath("hud").."/armor.lua") end if HUD_SHOW_ARMOR then dofile(minetest.get_modpath("hudbars").."/armor.lua") end
-- update hud elemtens if value has changed -- update hud elemtens if value has changed
local function update_hud(player) local function update_hud(player)