More luacheck errors
parent
2db0460b0f
commit
a5576ff8a1
|
@ -93,7 +93,7 @@ ikea.furniture.kit_defaults = {
|
|||
}
|
||||
|
||||
function ikea.furniture.register_kit(name, def_raw)
|
||||
local def_raw = def_raw or {}
|
||||
def_raw = def_raw or {}
|
||||
|
||||
-- Use new table to avoid changing the defaults table
|
||||
local def = {}
|
||||
|
|
|
@ -55,7 +55,7 @@ local light_defaults = {
|
|||
}
|
||||
|
||||
function ikea.light.register_light(name, def_raw)
|
||||
local def_raw = def_raw or {}
|
||||
def_raw = def_raw or {}
|
||||
|
||||
-- Use new table to avoid changing the defaults table
|
||||
local def = {}
|
||||
|
|
|
@ -12,7 +12,7 @@ local department_defaults = {
|
|||
}
|
||||
|
||||
function ikea.mapgen.register_department(def_raw)
|
||||
local def_raw = def_raw or {}
|
||||
def_raw = def_raw or {}
|
||||
|
||||
-- Use new table to avoid changing the defaults table
|
||||
local def = {}
|
||||
|
|
|
@ -13,7 +13,8 @@ music.last_played = 0
|
|||
music.handles = {}
|
||||
|
||||
function music.display_song_info(song)
|
||||
minetest.chat_send_all(music.tracks[song].title .. " by " .. music.tracks[song].author .. ", " .. music.tracks[song].license)
|
||||
local message = music.tracks[song].title .. " by " .. music.tracks[song].author .. ", " .. music.tracks[song].license
|
||||
minetest.chat_send_all(message)
|
||||
end
|
||||
|
||||
function music.play()
|
||||
|
@ -25,7 +26,7 @@ function music.play()
|
|||
end
|
||||
|
||||
-- Randomly choose a different track
|
||||
local choose = music.last_played
|
||||
local choose
|
||||
repeat
|
||||
choose = math.random(1, #music.tracks)
|
||||
until choose ~= music.last_played
|
||||
|
|
Loading…
Reference in New Issue