diff --git a/README.txt b/README.txt index ec577ed..b621310 100644 --- a/README.txt +++ b/README.txt @@ -7,11 +7,15 @@ A Minetest mod which sends a chat message when a player dies. -Version: 0.1.3 +Version: 0.1.4 License: GPL v3 (see LICENSE.txt) Dependencies: none + Please report bugs at the github issue tracker: +https://notabug.org/ademant/death_messages/issues/ + +This is a fork of https://github.com/4Evergreen4/death_messages/issues/ diff --git a/init.lua b/init.lua index 9d3e80d..1a96cf8 100644 --- a/init.lua +++ b/init.lua @@ -28,16 +28,15 @@ dofile(minetest.get_modpath("death_messages").."/settings.txt") ----------------------------------------------------------------------------------------------- local LANG = minetest.settings:get("language") if not (LANG and (LANG ~= "")) then LANG = "en" end --- check if stamina is used and death may occured by exhausting +-- check if stamina and/or hbhunger is used and death may occured by exhausting local mstamina = minetest.get_modpath("stamina") +local mhbhunger = minetest.get_modpath("hbhunger") local lstamina = 100 -- check if thirsty is used and death may occured by exhausting local mthirsty = minetest.get_modpath("thirsty") local lthirsty = 100 local msunburn = minetest.get_modpath("sunburn") local lsunburn = 0 -local mhbhunger = minetest.get_modpath("hbhunger") -local lhbhunger = 100 -- A table of quips for death messages. The first item in each sub table is the -- default message used when RANDOM_MESSAGES is disabled.