Fix crash in mcl_hunger

This commit is contained in:
Wuzzy 2019-03-08 23:47:50 +01:00
parent f373f3a4f1
commit 793357cdfe
2 changed files with 2 additions and 2 deletions

View file

@ -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