forked from mtcontrib/minetest_hbhunger
Move food registration to new file
This commit is contained in:
1
init.lua
1
init.lua
@ -39,6 +39,7 @@ local function custom_hud(player)
|
||||
end
|
||||
|
||||
dofile(minetest.get_modpath("hbhunger").."/hunger.lua")
|
||||
dofile(minetest.get_modpath("hbhunger").."/register_foods.lua")
|
||||
|
||||
-- register satiation hudbar
|
||||
hb.register_hudbar("satiation", 0xFFFFFF, S("Satiation"), { icon = "hbhunger_icon.png", bgicon = "hbhunger_bgicon.png", bar = "hbhunger_bar.png" }, 20, 30, false, nil, { format_value = "%.1f", format_max_value = "%d" })
|
||||
|
Reference in New Issue
Block a user