Add .luacheckrc

- Removes unused variable
This commit is contained in:
Louis 2020-07-12 13:04:02 +02:00
parent c539463fee
commit c49b4f1f0a
3 changed files with 31 additions and 8 deletions

30
.luacheckrc Normal file

@ -0,0 +1,30 @@
std = "lua51+minetest"
unused_args = false
allow_defined_top = true
max_line_length = 999
stds.minetest = {
read_globals = {
"DIR_DELIM",
"minetest",
"core",
"dump",
"vector",
"nodeupdate",
"VoxelManip",
"VoxelArea",
"PseudoRandom",
"ItemStack",
"default",
table = {
fields = {
"copy",
},
},
}
}
read_globals = {
"default",
"moreores",
}

@ -7,6 +7,7 @@
local modpath = minetest.get_modpath("basic_materials") local modpath = minetest.get_modpath("basic_materials")
basic_materials = {} basic_materials = {}
basic_materials.mod = { author = "Vanessa Dannenberg" }
dofile(modpath.."/metals.lua") dofile(modpath.."/metals.lua")
dofile(modpath.."/plastics.lua") dofile(modpath.."/plastics.lua")

@ -70,14 +70,6 @@ local chains_sbox = {
fixed = { -0.1, -0.5, -0.1, 0.1, 0.5, 0.1 } fixed = { -0.1, -0.5, -0.1, 0.1, 0.5, 0.1 }
} }
local topchains_sbox = {
type = "fixed",
fixed = {
{ -0.25, 0.35, -0.25, 0.25, 0.5, 0.25 },
{ -0.1, -0.5, -0.1, 0.1, 0.4, 0.1 }
}
}
minetest.register_node("basic_materials:chain_steel", { minetest.register_node("basic_materials:chain_steel", {
description = S("Chain (steel, hanging)"), description = S("Chain (steel, hanging)"),
drawtype = "mesh", drawtype = "mesh",