Made death messages catch extra cases

This commit is contained in:
Billy S 2019-04-29 18:01:37 -04:00
parent 786899c4df
commit 9f172a3b24

View File

@ -50,7 +50,9 @@ end
minetest.register_on_dieplayer(function(player, reason)
local victim = player:get_player_name()
if reason.type == "set_hp" then
-- Player was killed by mod
-- Player was killed by mod (unknown reason)
local msg = get_reason(other_reasons, victim)
broadcast(msg)
elseif reason.type == "punch" then
if reason.object == nil then
-- Player was killed by unknown object