mirror of
https://github.com/minetest-mods/lightning.git
synced 2024-11-15 23:00:42 +01:00
This should make fire optional
This commit is contained in:
parent
4c27fe79b7
commit
0f157571a5
|
@ -1,2 +1,2 @@
|
|||
default
|
||||
fire
|
||||
fire?
|
||||
|
|
2
init.lua
2
init.lua
|
@ -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"})
|
||||
|
|
Loading…
Reference in New Issue
Block a user