add sound-switch and use default if available

This commit is contained in:
BuckarooBanzay
2021-08-15 11:18:44 +02:00
parent 06aa9e0cf1
commit e3d87eefc6
10 changed files with 104 additions and 72 deletions

View File

@ -129,7 +129,7 @@ minetest.register_node("scifi_nodes:digicode_on", {
}
},
on_timer = toggle_digicode,
sounds = default.node_sound_glass_defaults(),
sounds = scifi_nodes.node_sound_glass_defaults(),
})
minetest.register_node("scifi_nodes:digicode_off", {
@ -152,7 +152,7 @@ minetest.register_node("scifi_nodes:digicode_off", {
},
after_place_node = set_owner,
on_rightclick = show_digicode_formspec,
sounds = default.node_sound_glass_defaults(),
sounds = scifi_nodes.node_sound_glass_defaults(),
})
minetest.register_craft({