Patch Flame arrow and firecharge dmg

This commit is contained in:
James David Clarke
2024-01-05 13:01:18 +00:00
parent e73293977c
commit db9e7f2465

View File

@@ -66,6 +66,9 @@ if minetest.get_modpath("mcl_inventory") then
(reason.type == "arrow" or reason.type == "fireball") then (reason.type == "arrow" or reason.type == "fireball") then
-- Check PvP settings for both players -- Check PvP settings for both players
if not is_pvp_enabled(obj) or not is_pvp_enabled(reason.source) 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) -- Extinguish the player if they are on fire
end
return 0 -- No damage if PvP is disabled for either player return 0 -- No damage if PvP is disabled for either player
end end
end end