mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 14:35:10 +00:00
Fix missing definition of age_next in mcl_fire
This commit is contained in:
parent
e2735e0081
commit
13963d00e5
1 changed files with 3 additions and 0 deletions
|
@ -212,6 +212,9 @@ minetest.register_node("mcl_fire:eternal_fire", {
|
||||||
while #airs > 0 do
|
while #airs > 0 do
|
||||||
local r = math.random(1, #airs)
|
local r = math.random(1, #airs)
|
||||||
if minetest.find_node_near(airs[r], 1, {"group:flammable"}) then
|
if minetest.find_node_near(airs[r], 1, {"group:flammable"}) then
|
||||||
|
local node = minetest.get_node(airs[r])
|
||||||
|
local age = node.param2
|
||||||
|
local age_next = math.min(15, age + math.random(0, 1))
|
||||||
spawn_fire(airs[r], age_next)
|
spawn_fire(airs[r], age_next)
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue