Extinguish fireaspect
This commit is contained in:
3
init.lua
3
init.lua
@@ -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)
|
||||||
|
|||||||
2
mod.conf
2
mod.conf
@@ -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
|
||||||
Reference in New Issue
Block a user