summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.txt4
-rw-r--r--init.lua8
-rw-r--r--textures/hbhunger_bar.png (renamed from textures/hunger_bar.png)bin80 -> 80 bytes
-rw-r--r--textures/hbhunger_icon.png (renamed from textures/hunger_icon.png)bin522 -> 522 bytes
4 files changed, 6 insertions, 6 deletions
diff --git a/README.txt b/README.txt
index f67f0bb..a71dd34 100644
--- a/README.txt
+++ b/README.txt
@@ -1,5 +1,5 @@
-Minetest mod: Hunger
-====================
+Minetest mod: Hunger [hbhunger]
+===============================
Version: 0.1.0
License of source code: WTFPL
diff --git a/init.lua b/init.lua
index 230fced..386c022 100644
--- a/init.lua
+++ b/init.lua
@@ -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
index c94bf52..c94bf52 100644
--- a/textures/hunger_bar.png
+++ b/textures/hbhunger_bar.png
Binary files differ
diff --git a/textures/hunger_icon.png b/textures/hbhunger_icon.png
index a5cc2a1..a5cc2a1 100644
--- a/textures/hunger_icon.png
+++ b/textures/hbhunger_icon.png
Binary files differ