From 9e095d0c0c358ebfde3586d4e8faf49cf1a409b0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 24 Jul 2017 20:37:51 +0200 Subject: [PATCH] Silly creeper explosion death msg workaround --- mods/HUD/mcl_death_messages/init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mods/HUD/mcl_death_messages/init.lua b/mods/HUD/mcl_death_messages/init.lua index 903e02f095..a59bac8ca8 100644 --- a/mods/HUD/mcl_death_messages/init.lua +++ b/mods/HUD/mcl_death_messages/init.lua @@ -143,7 +143,13 @@ minetest.register_on_dieplayer(function(player) end -- Player 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 elseif last_damages[name].hittertype == "arrow" then msg = dmsg("arrow", name)