mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 22:33:16 -04:00
Make fire permanent when param1 == 1
This commit is contained in:
parent
90fde974a2
commit
fe5e0efc10
1 changed files with 2 additions and 0 deletions
|
@ -155,6 +155,8 @@ minetest.register_abm({
|
||||||
interval = 1,
|
interval = 1,
|
||||||
chance = 2,
|
chance = 2,
|
||||||
action = function(p0, node, _, _)
|
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 there is water or stuff like that around flame, remove flame
|
||||||
if fire.flame_should_extinguish(p0) then
|
if fire.flame_should_extinguish(p0) then
|
||||||
minetest.remove_node(p0)
|
minetest.remove_node(p0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue