From f49b36908e09096347fa28645ec1481354aa54ee Mon Sep 17 00:00:00 2001 From: mazes 80 <> Date: Fri, 16 Sep 2022 04:26:26 +0200 Subject: [PATCH] Luacheck: unused assignements --- lib/soundloop.lua | 3 +-- lib/trigger.lua | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/soundloop.lua b/lib/soundloop.lua index 697bb40..b6a70f2 100644 --- a/lib/soundloop.lua +++ b/lib/soundloop.lua @@ -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 \ No newline at end of file +return soundloop diff --git a/lib/trigger.lua b/lib/trigger.lua index d40781a..68959ef 100644 --- a/lib/trigger.lua +++ b/lib/trigger.lua @@ -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)