From 793357cdfeab8f89d08648cfa4a7d2d065ab32aa Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 8 Mar 2019 23:47:50 +0100 Subject: [PATCH] Fix crash in mcl_hunger --- mods/PLAYER/mcl_hunger/hunger.lua | 2 +- mods/PLAYER/mcl_hunger/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/PLAYER/mcl_hunger/hunger.lua b/mods/PLAYER/mcl_hunger/hunger.lua index d37d051423..81f37e717d 100644 --- a/mods/PLAYER/mcl_hunger/hunger.lua +++ b/mods/PLAYER/mcl_hunger/hunger.lua @@ -116,7 +116,7 @@ local function poisonp(tick, time, time_left, damage, exhaustion, name) -- TODO: Introduce fatal poison at higher difficulties if player:get_hp()-damage > 0 then if mod_death_messages then - mcl_death_messages.player_damage(player, S("@1 succumbed to the poison."), name) + mcl_death_messages.player_damage(player, S("@1 succumbed to the poison.", name)) end player:set_hp(player:get_hp()-damage) end diff --git a/mods/PLAYER/mcl_hunger/init.lua b/mods/PLAYER/mcl_hunger/init.lua index 87812b8d0a..0e64a19067 100644 --- a/mods/PLAYER/mcl_hunger/init.lua +++ b/mods/PLAYER/mcl_hunger/init.lua @@ -170,7 +170,7 @@ minetest.register_globalstep(function(dtime) -- TODO: Allow starvation at higher difficulty levels if hp-1 > 0 then if mod_death_messages then - mcl_death_messages.player_damage(player, S("@1 starved to death."), name) + mcl_death_messages.player_damage(player, S("@1 starved to death.", name)) end player:set_hp(hp-1) end