From 20b6e065b31aa0fef8c3e190d92469c5e19a8e2a Mon Sep 17 00:00:00 2001 From: James David Clarke Date: Fri, 5 Jan 2024 13:33:11 +0000 Subject: [PATCH] Hail mary --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index be4010d..7bb894d 100644 --- a/init.lua +++ b/init.lua @@ -66,9 +66,10 @@ 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 + if minetest.get_modpath("mcl_burning") and minetest.get_modpath("mcl_potions") then mcl_burning.set_on_fire(obj, 0) mcl_burning.extinguish(obj) + mcl_potions.fire_resistance_func(obj, 0, 20) end return 0 -- No damage if PvP is disabled for either player end