From a72cc4d1a7d2f4d613cbffa4ceb3974eacfc4b02 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 24 Feb 2015 00:52:35 +0100 Subject: =?UTF-8?q?Change=20short=20mod=20name=20to=20=E2=80=9Chbhunger?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.txt | 4 ++-- init.lua | 8 ++++---- textures/hbhunger_bar.png | Bin 0 -> 80 bytes textures/hbhunger_icon.png | Bin 0 -> 522 bytes textures/hunger_bar.png | Bin 80 -> 0 bytes textures/hunger_icon.png | Bin 522 -> 0 bytes 6 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 textures/hbhunger_bar.png create mode 100644 textures/hbhunger_icon.png delete mode 100644 textures/hunger_bar.png delete mode 100644 textures/hunger_icon.png 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/hbhunger_bar.png b/textures/hbhunger_bar.png new file mode 100644 index 0000000..c94bf52 Binary files /dev/null and b/textures/hbhunger_bar.png differ diff --git a/textures/hbhunger_icon.png b/textures/hbhunger_icon.png new file mode 100644 index 0000000..a5cc2a1 Binary files /dev/null and b/textures/hbhunger_icon.png differ diff --git a/textures/hunger_bar.png b/textures/hunger_bar.png deleted file mode 100644 index c94bf52..0000000 Binary files a/textures/hunger_bar.png and /dev/null differ diff --git a/textures/hunger_icon.png b/textures/hunger_icon.png deleted file mode 100644 index a5cc2a1..0000000 Binary files a/textures/hunger_icon.png and /dev/null differ -- cgit v1.2.3