From af148675a6c030a905c46054d5306b2f60e15bb1 Mon Sep 17 00:00:00 2001 From: James David Clarke Date: Fri, 5 Jan 2024 13:14:50 +0000 Subject: [PATCH] Add logging --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index f4000d7..2ba997e 100644 --- a/init.lua +++ b/init.lua @@ -68,6 +68,8 @@ if minetest.get_modpath("mcl_inventory") then if not is_pvp_enabled(obj) or not is_pvp_enabled(reason.source) then if minetest.get_modpath("mcl_burning") then mcl_burning.extinguish(obj) + minetest.log("action", "[PvP Mod] Extinguishing player " .. obj:get_player_name()) + minetest.log("action", "[PvP Mod] Extinguishing source player " .. reason.source:get_player_name()) mcl_burning.extinguish(reason.source) -- Extinguish the player if they are on fire end return 0 -- No damage if PvP is disabled for either player