diff --git a/init.lua b/init.lua index d3478c8..c872f29 100644 --- a/init.lua +++ b/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 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 end end) diff --git a/mod.conf b/mod.conf index 00e5dae..a60b969 100644 --- a/mod.conf +++ b/mod.conf @@ -2,4 +2,4 @@ name = pvp_choice title = PVP Choice description = Enables you to choose weather you want to PVP or not. supported_games = * -optional_depends = mcl_inventory, mcl_damage \ No newline at end of file +optional_depends = mcl_inventory, mcl_damage,mcl_burning \ No newline at end of file