mirror of
https://github.com/t-affeldt/climate_api.git
synced 2025-04-30 16:31:45 -04:00
Luacheck: unused assignements
This commit is contained in:
parent
9898f71860
commit
f49b36908e
2 changed files with 2 additions and 3 deletions
|
@ -19,7 +19,6 @@ soundloop.play = function(player, sound, fade)
|
||||||
if sounds[player] == nil then sounds[player] = {} end
|
if sounds[player] == nil then sounds[player] = {} end
|
||||||
if sounds[player][sound.name] == nil then
|
if sounds[player][sound.name] == nil then
|
||||||
step = sound.gain / fade
|
step = sound.gain / fade
|
||||||
start_gain = 0
|
|
||||||
elseif sounds[player][sound.name] ~= sound.gain then
|
elseif sounds[player][sound.name] ~= sound.gain then
|
||||||
minetest.sound_stop(sounds[player][sound.name].handle)
|
minetest.sound_stop(sounds[player][sound.name].handle)
|
||||||
start_gain = sounds[player][sound.name].gain
|
start_gain = sounds[player][sound.name].gain
|
||||||
|
|
|
@ -68,7 +68,7 @@ local function is_weather_active(player, weather, env)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function get_weather_effects(player, weather_config, env)
|
local function get_weather_effects(player, weather_config, env)
|
||||||
local config = {}
|
local config
|
||||||
local effects = {}
|
local effects = {}
|
||||||
if type(weather_config.effects) == "function" then
|
if type(weather_config.effects) == "function" then
|
||||||
config = weather_config.effects(env)
|
config = weather_config.effects(env)
|
||||||
|
|
Loading…
Add table
Reference in a new issue