This should make fire optional

This commit is contained in:
Auke Kok 2017-02-20 10:34:22 -08:00
parent 4c27fe79b7
commit 0f157571a5
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
default
fire
fire?

View File

@ -155,7 +155,7 @@ lightning.strike = function(pos)
return
end
-- 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"})
else
minetest.set_node(pos2, {name = "lightning:dying_flame"})