mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 14:23:16 -04:00
Merge fe5e0efc10
into 90fde974a2
This commit is contained in:
commit
a142c87faa
1 changed files with 2 additions and 0 deletions
|
@ -155,6 +155,8 @@ minetest.register_abm({
|
|||
interval = 1,
|
||||
chance = 2,
|
||||
action = function(p0, node, _, _)
|
||||
--If fire is permanent then do not allow destroy
|
||||
if minetest.env:get_node(p0).param1 == 1 then return end
|
||||
-- If there is water or stuff like that around flame, remove flame
|
||||
if fire.flame_should_extinguish(p0) then
|
||||
minetest.remove_node(p0)
|
||||
|
|
Loading…
Add table
Reference in a new issue