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, except when near water
This commit is contained in:
parent
90fde974a2
commit
74fbe3dfd6
1 changed files with 2 additions and 0 deletions
|
@ -161,6 +161,8 @@ minetest.register_abm({
|
||||||
fire.on_flame_remove_at(p0)
|
fire.on_flame_remove_at(p0)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
--check if fire is permenant or not
|
||||||
|
if minetest.env:get_node(p0).param1 == 1 then return end
|
||||||
-- Make the following things rarer
|
-- Make the following things rarer
|
||||||
if math.random(1,3) == 1 then
|
if math.random(1,3) == 1 then
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue