mirror of
https://github.com/t-affeldt/climate_api.git
synced 2024-11-15 23:20:23 +01:00
Luacheck: unused assignements
This commit is contained in:
parent
9898f71860
commit
f49b36908e
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user