diff --git a/.luacheckrc b/.luacheckrc index 05111a2..3814fcc 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -5,4 +5,5 @@ read_globals = { "dump", "vector", "VoxelManip", "VoxelArea", table = { fields = { "copy" } } + "lightning", } \ No newline at end of file diff --git a/weather/api.lua b/weather/api.lua index 33a5753..4019d7b 100644 --- a/weather/api.lua +++ b/weather/api.lua @@ -77,7 +77,7 @@ end minetest.register_globalstep(function() 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 weather.wind = {} weather.wind.x = math.random(0,10)