Skip to content

Commit

Permalink
Fix linting warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesClarke7283 committed Jan 15, 2024
1 parent 75ee613 commit 65b9c15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ unused_args = false
allow_defined_top = true
max_line_length = 90

ignore = {
"default_stone_sounds",
"default_metal_sounds"
}

stds.minetest = {
read_globals = {
"DIR_DELIM",
Expand Down Expand Up @@ -30,4 +35,5 @@ read_globals = {
"frame",
"mg",
"toolranks",
"mcl_sounds"
}
11 changes: 4 additions & 7 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,12 @@ local stone_ingredient = is_mcl_core_present and "mcl_core:stone" or "default:st
local copper_ingredient =
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
default_stone_sounds = mcl_sounds.node_sound_stone_defaults()
default_metal_sounds = mcl_sounds.node_sound_metal_defaults()
local default_stone_sounds = mcl_sounds.node_sound_stone_defaults()
local default_metal_sounds = mcl_sounds.node_sound_metal_defaults()
else
default_stone_sounds = default.node_sound_stone_defaults()
default_metal_sounds = default.node_sound_metal_defaults()
local default_stone_sounds = default.node_sound_stone_defaults()
local default_metal_sounds = default.node_sound_metal_defaults()
end


Expand Down

0 comments on commit 65b9c15

Please sign in to comment.