Remove sounds = default.sound_stone_defaults() as default is no longer a dependency

This commit is contained in:
orwell96 2021-04-04 19:48:35 +02:00
parent 99e619a2e5
commit 3dc6426e86
3 changed files with 4 additions and 11 deletions

View File

@ -16,7 +16,7 @@ function advtrains.register_platform(modprefix, preset)
description = attrans("@1 Platform (low)", desc), description = attrans("@1 Platform (low)", desc),
tiles = {btex.."^advtrains_platform.png", btex, btex, btex, btex, btex}, tiles = {btex.."^advtrains_platform.png", btex, btex, btex, btex, btex},
groups = {cracky = 1, not_blocking_trains = 1, platform=1}, groups = {cracky = 1, not_blocking_trains = 1, platform=1},
sounds = default.node_sound_stone_defaults(), sounds = ndef.sounds,
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -33,7 +33,7 @@ function advtrains.register_platform(modprefix, preset)
description = attrans("@1 Platform (high)", desc), description = attrans("@1 Platform (high)", desc),
tiles = {btex.."^advtrains_platform.png", btex, btex, btex, btex, btex}, tiles = {btex.."^advtrains_platform.png", btex, btex, btex, btex, btex},
groups = {cracky = 1, not_blocking_trains = 1, platform=2}, groups = {cracky = 1, not_blocking_trains = 1, platform=2},
sounds = default.node_sound_stone_defaults(), sounds = ndef.sounds,
drawtype = "nodebox", drawtype = "nodebox",
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -58,7 +58,7 @@ function advtrains.register_platform(modprefix, preset)
minetest.register_node(modprefix..":platform_45_"..nodename, { minetest.register_node(modprefix..":platform_45_"..nodename, {
description = attrans("@1 Platform (45 degree)", desc), description = attrans("@1 Platform (45 degree)", desc),
groups = {cracky = 1, not_blocking_trains = 1, platform=2}, groups = {cracky = 1, not_blocking_trains = 1, platform=2},
sounds = default.node_sound_stone_defaults(), sounds = ndef.sounds,
drawtype = "mesh", drawtype = "mesh",
mesh = "advtrains_platform_diag.b3d", mesh = "advtrains_platform_diag.b3d",
selection_box = diagonalbox, selection_box = diagonalbox,
@ -80,7 +80,7 @@ function advtrains.register_platform(modprefix, preset)
minetest.register_node(modprefix..":platform_45_low_"..nodename, { minetest.register_node(modprefix..":platform_45_low_"..nodename, {
description = attrans("@1 Platform (low, 45 degree)", desc), description = attrans("@1 Platform (low, 45 degree)", desc),
groups = {cracky = 1, not_blocking_trains = 1, platform=2}, groups = {cracky = 1, not_blocking_trains = 1, platform=2},
sounds = default.node_sound_stone_defaults(), sounds = ndef.sounds,
drawtype = "mesh", drawtype = "mesh",
mesh = "advtrains_platform_diag_low.b3d", mesh = "advtrains_platform_diag_low.b3d",
selection_box = diagonalbox_low, selection_box = diagonalbox_low,

View File

@ -41,7 +41,6 @@ minetest.register_node("advtrains_interlocking:ds_danger", {
advtrains_signal = 2, advtrains_signal = 2,
save_in_at_nodedb = 1, save_in_at_nodedb = 1,
}, },
sounds = default.node_sound_stone_defaults(),
advtrains = { advtrains = {
set_aspect = setaspect, set_aspect = setaspect,
supported_aspects = suppasp, supported_aspects = suppasp,
@ -61,7 +60,6 @@ minetest.register_node("advtrains_interlocking:ds_free", {
advtrains_signal = 2, advtrains_signal = 2,
save_in_at_nodedb = 1, save_in_at_nodedb = 1,
}, },
sounds = default.node_sound_stone_defaults(),
advtrains = { advtrains = {
set_aspect = setaspect, set_aspect = setaspect,
supported_aspects = suppasp, supported_aspects = suppasp,
@ -83,7 +81,6 @@ minetest.register_node("advtrains_interlocking:ds_slow", {
advtrains_signal = 2, advtrains_signal = 2,
save_in_at_nodedb = 1, save_in_at_nodedb = 1,
}, },
sounds = default.node_sound_stone_defaults(),
advtrains = { advtrains = {
set_aspect = setaspect, set_aspect = setaspect,
supported_aspects = suppasp, supported_aspects = suppasp,

View File

@ -105,7 +105,6 @@ for _, rtab in ipairs({
}, },
drop = "advtrains_signals_ks:hs_danger_0", drop = "advtrains_signals_ks:hs_danger_0",
inventory_image = "advtrains_signals_ks_hs_inv.png", inventory_image = "advtrains_signals_ks_hs_inv.png",
sounds = default.node_sound_stone_defaults(),
advtrains = { advtrains = {
set_aspect = setaspectf(rot), set_aspect = setaspectf(rot),
supported_aspects = suppasp, supported_aspects = suppasp,
@ -151,7 +150,6 @@ for _, rtab in ipairs({
}, },
drop = "advtrains_signals_ks:ra_danger_0", drop = "advtrains_signals_ks:ra_danger_0",
inventory_image = "advtrains_signals_ks_ra_inv.png", inventory_image = "advtrains_signals_ks_ra_inv.png",
sounds = default.node_sound_stone_defaults(),
advtrains = { advtrains = {
set_aspect = setaspectf_ra(rot), set_aspect = setaspectf_ra(rot),
supported_aspects = suppasp_ra, supported_aspects = suppasp_ra,
@ -203,7 +201,6 @@ for _, rtab in ipairs({
}, },
drop = "advtrains_signals_ks:sign_8_0", drop = "advtrains_signals_ks:sign_8_0",
inventory_image = "advtrains_signals_ks_sign_8.png", inventory_image = "advtrains_signals_ks_sign_8.png",
sounds = default.node_sound_stone_defaults(),
advtrains = { advtrains = {
-- This is a static signal! No set_aspect -- This is a static signal! No set_aspect
get_aspect = function(pos, node) get_aspect = function(pos, node)
@ -239,7 +236,6 @@ for _, rtab in ipairs({
not_in_creative_inventory = (rtab.ici) and 0 or 1, not_in_creative_inventory = (rtab.ici) and 0 or 1,
}, },
drop = "advtrains_signals_ks:mast_mast_0", drop = "advtrains_signals_ks:mast_mast_0",
sounds = default.node_sound_stone_defaults(),
}) })
advtrains.trackplacer.add_worked("advtrains_signals_ks:mast","mast", "_"..rot) advtrains.trackplacer.add_worked("advtrains_signals_ks:mast","mast", "_"..rot)
end end