mirror of
https://github.com/minetest-mods/lightning.git
synced 2025-05-03 08:10:18 +02:00
This should make default optional as well
This commit is contained in:
parent
0f157571a5
commit
d426c601b4
@ -1,2 +1,2 @@
|
|||||||
default
|
default?
|
||||||
fire?
|
fire?
|
||||||
|
2
init.lua
2
init.lua
@ -164,7 +164,7 @@ lightning.strike = function(pos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- perform block modifications
|
-- perform block modifications
|
||||||
if rng:next(1,10) > 1 then
|
if not default or rng:next(1,10) > 1 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
pos2.y = pos2.y - 1
|
pos2.y = pos2.y - 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user