master
random-geek 2021-04-02 16:14:15 -07:00
parent b84894e492
commit 87111a1700
2 changed files with 30 additions and 1 deletions

29
.luacheckrc Normal file
View File

@ -0,0 +1,29 @@
unused_args = false
-- allow_defined_top = true
globals = {
"minetest",
"auroras",
}
read_globals = {
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},
-- Builtin
"vector",
"ItemStack",
"dump",
"DIR_DELIM",
"VoxelArea",
"Settings",
"PerlinNoise",
-- MTG
"default",
"sfinv",
"creative",
-- Mods
"climate_api",
}

View File

@ -178,7 +178,7 @@ function auroras.init_colors()
if auroras.COLOR_LUT == nil then
auroras.COLOR_LUT = {}
local idx = 0
for i, hexCol in pairs(auroras.COLORS) do
for _, hexCol in pairs(auroras.COLORS) do
local tCol = auroras.parse_hex_color(hexCol)
if tCol ~= nil then
auroras.COLOR_LUT[idx] = tCol