From a690e12276065363c77bf79bbcca877360bd40c4 Mon Sep 17 00:00:00 2001 From: James David Clarke Date: Fri, 5 Jan 2024 13:28:24 +0000 Subject: [PATCH] Set on fire time to 0 --- init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 69f157c..be4010d 100644 --- a/init.lua +++ b/init.lua @@ -66,8 +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_potions") then - mcl_potions.fire_resistance_func(obj, 1, 1) + if minetest.get_modpath("mcl_burning") then + mcl_burning.set_on_fire(obj, 0) + mcl_burning.extinguish(obj) end return 0 -- No damage if PvP is disabled for either player end