Fix crash when slain by named mob

This commit is contained in:
Lizzy Fleckenstein 2021-04-19 17:40:50 +02:00
parent c80b1c5140
commit 20a4e038f5
1 changed files with 3 additions and 3 deletions

View File

@ -222,7 +222,7 @@ minetest.register_on_dieplayer(function(player, reason)
end
hittersubtype = hitter:get_luaentity().name
if hittername then
msg = dmsg("murder", name, hittername)
msg = dmsg("murder_hand", name, hittername)
elseif hittersubtype ~= nil and hittersubtype ~= "" then
msg = mmsg(hittersubtype, name)
else