From db9e7f24652c0693d5abbaaf5f8efd0bb7bfc3ca Mon Sep 17 00:00:00 2001 From: James David Clarke Date: Fri, 5 Jan 2024 13:01:18 +0000 Subject: [PATCH] Patch Flame arrow and firecharge dmg --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index c872f29..1dcebbc 100644 --- a/init.lua +++ b/init.lua @@ -66,6 +66,9 @@ if minetest.get_modpath("mcl_inventory") then (reason.type == "arrow" or reason.type == "fireball") then -- Check PvP settings for both players 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) -- Extinguish the player if they are on fire + end return 0 -- No damage if PvP is disabled for either player end end