diff options
-rw-r--r-- | README.txt | 4 | ||||
-rw-r--r-- | init.lua | 8 | ||||
-rw-r--r-- | textures/hbhunger_bar.png (renamed from textures/hunger_bar.png) | bin | 80 -> 80 bytes | |||
-rw-r--r-- | textures/hbhunger_icon.png (renamed from textures/hunger_icon.png) | bin | 522 -> 522 bytes |
4 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ -Minetest mod: Hunger -==================== +Minetest mod: Hunger [hbhunger] +=============================== Version: 0.1.0 License of source code: WTFPL @@ -22,9 +22,9 @@ HUNGER_EXHAUST_LVL = 160 -- at what exhaustion player saturation gets lowerd --load custom settings -local set = io.open(minetest.get_modpath("hunger").."/hunger.conf", "r") +local set = io.open(minetest.get_modpath("hbhunger").."/hbhunger.conf", "r") if set then - dofile(minetest.get_modpath("hunger").."/hunger.conf") + dofile(minetest.get_modpath("hbhunger").."/hbhunger.conf") set:close() end @@ -32,10 +32,10 @@ local function custom_hud(player) hb.init_hudbar(player, "saturation", hunger.get_hunger(player)) end -dofile(minetest.get_modpath("hunger").."/hunger.lua") +dofile(minetest.get_modpath("hbhunger").."/hunger.lua") -- register saturation hudbar -hb.register_hudbar("saturation", 0xFFFFFF, "Saturation", { icon = "hunger_icon.png", bar = "hunger_bar.png" }, 20, 30, false) +hb.register_hudbar("saturation", 0xFFFFFF, "Saturation", { icon = "hbhunger_icon.png", bar = "hbhunger_bar.png" }, 20, 30, false) -- update hud elemtens if value has changed local function update_hud(player) diff --git a/textures/hunger_bar.png b/textures/hbhunger_bar.png Binary files differindex c94bf52..c94bf52 100644 --- a/textures/hunger_bar.png +++ b/textures/hbhunger_bar.png diff --git a/textures/hunger_icon.png b/textures/hbhunger_icon.png Binary files differindex a5cc2a1..a5cc2a1 100644 --- a/textures/hunger_icon.png +++ b/textures/hbhunger_icon.png |