From 339fb2d79e7338d16cc2224659eb708be1a4011d Mon Sep 17 00:00:00 2001 From: Eliy21 Date: Tue, 5 Dec 2023 05:45:14 +0000 Subject: [PATCH] Specify who joined the game with 0 hp in the warning log --- mods/PLAYER/mcl_playerplus/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_playerplus/init.lua b/mods/PLAYER/mcl_playerplus/init.lua index b128d2198..92e22b0e6 100644 --- a/mods/PLAYER/mcl_playerplus/init.lua +++ b/mods/PLAYER/mcl_playerplus/init.lua @@ -675,7 +675,7 @@ minetest.register_on_joinplayer(function(player) -- Respawn dead players on joining if hp <= 0 then player:respawn() - minetest.log("warning", "Player with 0 hp joined and has been forced to respawn") + minetest.log("warning", name .. " joined the game with 0 hp and has been forced to respawn") end end)