code beautification
This commit is contained in:
parent
08d7f5d54c
commit
b916493280
|
@ -5,4 +5,5 @@ read_globals = {
|
||||||
"dump", "vector",
|
"dump", "vector",
|
||||||
"VoxelManip", "VoxelArea",
|
"VoxelManip", "VoxelArea",
|
||||||
table = { fields = { "copy" } }
|
table = { fields = { "copy" } }
|
||||||
|
"lightning",
|
||||||
}
|
}
|
|
@ -77,7 +77,7 @@ end
|
||||||
|
|
||||||
minetest.register_globalstep(function()
|
minetest.register_globalstep(function()
|
||||||
if weather.type=="none" then
|
if weather.type=="none" then
|
||||||
for id,el in pairs(weather_mod.registered_downfalls) do
|
for id,_ in pairs(weather_mod.registered_downfalls) do
|
||||||
if math.random(1, 50000) == 1 then
|
if math.random(1, 50000) == 1 then
|
||||||
weather.wind = {}
|
weather.wind = {}
|
||||||
weather.wind.x = math.random(0,10)
|
weather.wind.x = math.random(0,10)
|
||||||
|
|
Loading…
Reference in New Issue