mirror of
https://github.com/minetest-mods/moreores.git
synced 2024-09-27 14:20:25 +02:00
Fix linting warnings
This commit is contained in:
parent
75ee613c23
commit
65b9c15b02
|
@ -3,6 +3,11 @@ unused_args = false
|
||||||
allow_defined_top = true
|
allow_defined_top = true
|
||||||
max_line_length = 90
|
max_line_length = 90
|
||||||
|
|
||||||
|
ignore = {
|
||||||
|
"default_stone_sounds",
|
||||||
|
"default_metal_sounds"
|
||||||
|
}
|
||||||
|
|
||||||
stds.minetest = {
|
stds.minetest = {
|
||||||
read_globals = {
|
read_globals = {
|
||||||
"DIR_DELIM",
|
"DIR_DELIM",
|
||||||
|
@ -30,4 +35,5 @@ read_globals = {
|
||||||
"frame",
|
"frame",
|
||||||
"mg",
|
"mg",
|
||||||
"toolranks",
|
"toolranks",
|
||||||
|
"mcl_sounds"
|
||||||
}
|
}
|
||||||
|
|
11
init.lua
11
init.lua
|
@ -33,15 +33,12 @@ local stone_ingredient = is_mcl_core_present and "mcl_core:stone" or "default:st
|
||||||
local copper_ingredient =
|
local copper_ingredient =
|
||||||
is_mcl_core_present and "mcl_copper:copper_ingot" or 'default:copper_ingot'
|
is_mcl_core_present and "mcl_copper:copper_ingot" or 'default:copper_ingot'
|
||||||
|
|
||||||
local default_stone_sounds = nil
|
|
||||||
local default_metal_sounds = nil
|
|
||||||
|
|
||||||
if is_mcl_sounds_present then
|
if is_mcl_sounds_present then
|
||||||
default_stone_sounds = mcl_sounds.node_sound_stone_defaults()
|
local default_stone_sounds = mcl_sounds.node_sound_stone_defaults()
|
||||||
default_metal_sounds = mcl_sounds.node_sound_metal_defaults()
|
local default_metal_sounds = mcl_sounds.node_sound_metal_defaults()
|
||||||
else
|
else
|
||||||
default_stone_sounds = default.node_sound_stone_defaults()
|
local default_stone_sounds = default.node_sound_stone_defaults()
|
||||||
default_metal_sounds = default.node_sound_metal_defaults()
|
local default_metal_sounds = default.node_sound_metal_defaults()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user