Luacheck: unused assignements

This commit is contained in:
mazes 80 2022-09-16 04:26:26 +02:00
parent 9898f71860
commit f49b36908e
2 changed files with 2 additions and 3 deletions

View File

@ -19,7 +19,6 @@ soundloop.play = function(player, sound, fade)
if sounds[player] == nil then sounds[player] = {} end
if sounds[player][sound.name] == nil then
step = sound.gain / fade
start_gain = 0
elseif sounds[player][sound.name] ~= sound.gain then
minetest.sound_stop(sounds[player][sound.name].handle)
start_gain = sounds[player][sound.name].gain
@ -54,4 +53,4 @@ soundloop.stop = function(player, sound, fade)
minetest.after(fade, minetest.sound_stop, handle)
end
return soundloop
return soundloop

View File

@ -68,7 +68,7 @@ local function is_weather_active(player, weather, env)
end
local function get_weather_effects(player, weather_config, env)
local config = {}
local config
local effects = {}
if type(weather_config.effects) == "function" then
config = weather_config.effects(env)