Extinguish fireaspect

This commit is contained in:
James David Clarke
2024-01-05 12:50:13 +00:00
parent fba185ed8f
commit e73293977c
2 changed files with 4 additions and 1 deletions

View File

@@ -41,6 +41,9 @@ minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch,
-- Check if PvP is disabled for either player -- Check if PvP is disabled for either player
if player_pvp_setting == "false" or hitter_pvp_setting == "false" then if player_pvp_setting == "false" or hitter_pvp_setting == "false" then
if minetest.get_modpath("mcl_burning") then
mcl_burning.extinguish(player) -- Extinguish the player if they are on fire
end
return true -- Cancel the punch event return true -- Cancel the punch event
end end
end) end)

View File

@@ -2,4 +2,4 @@ name = pvp_choice
title = PVP Choice title = PVP Choice
description = Enables you to choose weather you want to PVP or not. description = Enables you to choose weather you want to PVP or not.
supported_games = * supported_games = *
optional_depends = mcl_inventory, mcl_damage optional_depends = mcl_inventory, mcl_damage,mcl_burning