aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2021-04-04 19:48:35 +0200
committerorwell96 <orwell@bleipb.de>2021-04-04 19:48:35 +0200
commit3dc6426e861b7c7e7fa14ab82d62a7d818ea0d2e (patch)
treed935a61f39404d53992cf2defd3289910c0dea6d
parent99e619a2e57683196e2da5dba2346184554a3019 (diff)
downloadadvtrains-3dc6426e861b7c7e7fa14ab82d62a7d818ea0d2e.tar.gz
advtrains-3dc6426e861b7c7e7fa14ab82d62a7d818ea0d2e.tar.bz2
advtrains-3dc6426e861b7c7e7fa14ab82d62a7d818ea0d2e.zip
Remove sounds = default.sound_stone_defaults() as default is no longer a dependency
-rw-r--r--advtrains/misc_nodes.lua8
-rw-r--r--advtrains_interlocking/demosignals.lua3
-rwxr-xr-xadvtrains_signals_ks/init.lua4
3 files changed, 4 insertions, 11 deletions
diff --git a/advtrains/misc_nodes.lua b/advtrains/misc_nodes.lua
index fe484ac..bcf7329 100644
--- a/advtrains/misc_nodes.lua
+++ b/advtrains/misc_nodes.lua
@@ -16,7 +16,7 @@ function advtrains.register_platform(modprefix, preset)
description = attrans("@1 Platform (low)", desc),
tiles = {btex.."^advtrains_platform.png", btex, btex, btex, btex, btex},
groups = {cracky = 1, not_blocking_trains = 1, platform=1},
- sounds = default.node_sound_stone_defaults(),
+ sounds = ndef.sounds,
drawtype = "nodebox",
node_box = {
type = "fixed",
@@ -33,7 +33,7 @@ function advtrains.register_platform(modprefix, preset)
description = attrans("@1 Platform (high)", desc),
tiles = {btex.."^advtrains_platform.png", btex, btex, btex, btex, btex},
groups = {cracky = 1, not_blocking_trains = 1, platform=2},
- sounds = default.node_sound_stone_defaults(),
+ sounds = ndef.sounds,
drawtype = "nodebox",
node_box = {
type = "fixed",
@@ -58,7 +58,7 @@ function advtrains.register_platform(modprefix, preset)
minetest.register_node(modprefix..":platform_45_"..nodename, {
description = attrans("@1 Platform (45 degree)", desc),
groups = {cracky = 1, not_blocking_trains = 1, platform=2},
- sounds = default.node_sound_stone_defaults(),
+ sounds = ndef.sounds,
drawtype = "mesh",
mesh = "advtrains_platform_diag.b3d",
selection_box = diagonalbox,
@@ -80,7 +80,7 @@ function advtrains.register_platform(modprefix, preset)
minetest.register_node(modprefix..":platform_45_low_"..nodename, {
description = attrans("@1 Platform (low, 45 degree)", desc),
groups = {cracky = 1, not_blocking_trains = 1, platform=2},
- sounds = default.node_sound_stone_defaults(),
+ sounds = ndef.sounds,
drawtype = "mesh",
mesh = "advtrains_platform_diag_low.b3d",
selection_box = diagonalbox_low,
diff --git a/advtrains_interlocking/demosignals.lua b/advtrains_interlocking/demosignals.lua
index cba1f30..1c1b8b2 100644
--- a/advtrains_interlocking/demosignals.lua
+++ b/advtrains_interlocking/demosignals.lua
@@ -41,7 +41,6 @@ minetest.register_node("advtrains_interlocking:ds_danger", {
advtrains_signal = 2,
save_in_at_nodedb = 1,
},
- sounds = default.node_sound_stone_defaults(),
advtrains = {
set_aspect = setaspect,
supported_aspects = suppasp,
@@ -61,7 +60,6 @@ minetest.register_node("advtrains_interlocking:ds_free", {
advtrains_signal = 2,
save_in_at_nodedb = 1,
},
- sounds = default.node_sound_stone_defaults(),
advtrains = {
set_aspect = setaspect,
supported_aspects = suppasp,
@@ -83,7 +81,6 @@ minetest.register_node("advtrains_interlocking:ds_slow", {
advtrains_signal = 2,
save_in_at_nodedb = 1,
},
- sounds = default.node_sound_stone_defaults(),
advtrains = {
set_aspect = setaspect,
supported_aspects = suppasp,
diff --git a/advtrains_signals_ks/init.lua b/advtrains_signals_ks/init.lua
index 3209cb1..b05506e 100755
--- a/advtrains_signals_ks/init.lua
+++ b/advtrains_signals_ks/init.lua
@@ -105,7 +105,6 @@ for _, rtab in ipairs({
},
drop = "advtrains_signals_ks:hs_danger_0",
inventory_image = "advtrains_signals_ks_hs_inv.png",
- sounds = default.node_sound_stone_defaults(),
advtrains = {
set_aspect = setaspectf(rot),
supported_aspects = suppasp,
@@ -151,7 +150,6 @@ for _, rtab in ipairs({
},
drop = "advtrains_signals_ks:ra_danger_0",
inventory_image = "advtrains_signals_ks_ra_inv.png",
- sounds = default.node_sound_stone_defaults(),
advtrains = {
set_aspect = setaspectf_ra(rot),
supported_aspects = suppasp_ra,
@@ -203,7 +201,6 @@ for _, rtab in ipairs({
},
drop = "advtrains_signals_ks:sign_8_0",
inventory_image = "advtrains_signals_ks_sign_8.png",
- sounds = default.node_sound_stone_defaults(),
advtrains = {
-- This is a static signal! No set_aspect
get_aspect = function(pos, node)
@@ -239,7 +236,6 @@ for _, rtab in ipairs({
not_in_creative_inventory = (rtab.ici) and 0 or 1,
},
drop = "advtrains_signals_ks:mast_mast_0",
- sounds = default.node_sound_stone_defaults(),
})
advtrains.trackplacer.add_worked("advtrains_signals_ks:mast","mast", "_"..rot)
end