mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-11-28 01:53:46 +01:00
Change mod name to “hudbars” in source code ... at least partially
This commit is contained in:
parent
2a2db9ab9c
commit
8a9d81303c
8
init.lua
8
init.lua
@ -68,9 +68,9 @@ if minetest.get_modpath("3d_armor") ~= nil then
|
||||
end
|
||||
|
||||
--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
|
||||
dofile(minetest.get_modpath("hud").."/hud.conf")
|
||||
dofile(minetest.get_modpath("hudbars").."/hud.conf")
|
||||
set:close()
|
||||
else
|
||||
if not HUD_ENABLE_HUNGER then
|
||||
@ -176,8 +176,8 @@ function hud.set_armor()
|
||||
end
|
||||
|
||||
|
||||
if HUD_ENABLE_HUNGER then dofile(minetest.get_modpath("hud").."/hunger.lua") end
|
||||
if HUD_SHOW_ARMOR then dofile(minetest.get_modpath("hud").."/armor.lua") end
|
||||
if HUD_ENABLE_HUNGER then dofile(minetest.get_modpath("hudbars").."/hunger.lua") end
|
||||
if HUD_SHOW_ARMOR then dofile(minetest.get_modpath("hudbars").."/armor.lua") end
|
||||
|
||||
-- update hud elemtens if value has changed
|
||||
local function update_hud(player)
|
||||
|
Loading…
Reference in New Issue
Block a user