This should make fire optional
This commit is contained in:
parent
4c27fe79b7
commit
0f157571a5
@ -1,2 +1,2 @@
|
|||||||
default
|
default
|
||||||
fire
|
fire?
|
||||||
|
2
init.lua
2
init.lua
@ -155,7 +155,7 @@ lightning.strike = function(pos)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
-- very rarely, potentially cause a fire
|
-- very rarely, potentially cause a fire
|
||||||
if rng:next(1,1000) == 1 then
|
if fire and rng:next(1,1000) == 1 then
|
||||||
minetest.set_node(pos2, {name = "fire:basic_flame"})
|
minetest.set_node(pos2, {name = "fire:basic_flame"})
|
||||||
else
|
else
|
||||||
minetest.set_node(pos2, {name = "lightning:dying_flame"})
|
minetest.set_node(pos2, {name = "lightning:dying_flame"})
|
||||||
|
Loading…
Reference in New Issue
Block a user