mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
Silly creeper explosion death msg workaround
This commit is contained in:
parent
26f2fc1b12
commit
9e095d0c0c
1 changed files with 7 additions and 1 deletions
|
@ -143,7 +143,13 @@ minetest.register_on_dieplayer(function(player)
|
||||||
end
|
end
|
||||||
-- Player
|
-- Player
|
||||||
elseif last_damages[name].hittertype == "player" then
|
elseif last_damages[name].hittertype == "player" then
|
||||||
msg = dmsg("murder", name, last_damages[name].hittername)
|
if last_damages[name].hittername == name then
|
||||||
|
-- Workaround when player somehow punches self. Caused by creeper explosions in mobs mod.
|
||||||
|
-- FIXME: Remove when self-punching is no longer buggy.
|
||||||
|
msg = dmsg("other", name)
|
||||||
|
else
|
||||||
|
msg = dmsg("murder", name, last_damages[name].hittername)
|
||||||
|
end
|
||||||
-- Arrow
|
-- Arrow
|
||||||
elseif last_damages[name].hittertype == "arrow" then
|
elseif last_damages[name].hittertype == "arrow" then
|
||||||
msg = dmsg("arrow", name)
|
msg = dmsg("arrow", name)
|
||||||
|
|
Loading…
Reference in a new issue