Skip to content

Commit

Permalink
update to use xcompat (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 authored Aug 9, 2024
1 parent 37f2b31 commit bba4920
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ read_globals = {
"vector", "ItemStack", "dump", "DIR_DELIM", "VoxelArea", "Settings", "PcgRandom", "VoxelManip", "PseudoRandom",

--mod produced

"xcompat",
}
12 changes: 3 additions & 9 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ minetest.register_node("girder:beam", {
tiles = {"[combine:16x16^[noalpha^[colorize:grey"},
groups={oddly_breakable_by_hand=3},
is_ground_content = false,
_sound_def = {
key = "node_sound_metal_defaults",
},
sounds = xcompat.sounds.node_sound_metal_defaults(),
})
minetest.register_node("girder:girder_side", {
description = "beam",
Expand All @@ -20,9 +18,7 @@ minetest.register_node("girder:girder_side", {
tiles = {"[combine:16x16^[noalpha^[colorize:grey"},
groups={oddly_breakable_by_hand=3},
is_ground_content = false,
_sound_def = {
key = "node_sound_metal_defaults",
},
sounds = xcompat.sounds.node_sound_metal_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, -0.5+2/16},
Expand All @@ -41,9 +37,7 @@ minetest.register_node("girder:plate", {
tiles = {"[combine:16x16^[noalpha^[colorize:grey"},
groups={oddly_breakable_by_hand=3},
is_ground_content = false,
_sound_def = {
key = "node_sound_metal_defaults",
},
sounds = xcompat.sounds.node_sound_metal_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+1/16, 0.5},
Expand Down
2 changes: 1 addition & 1 deletion mod.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name = girder
optional_depends = sound_api
depends = xcompat

0 comments on commit bba4920

Please sign in to comment.