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

@ -44,7 +44,7 @@ minetest.register_node("scifi_nodes:switch_on", {
state = (has_mesecons and mesecon.state.on)
}
},
sounds = default.node_sound_glass_defaults(),
sounds = scifi_nodes.node_sound_glass_defaults(),
on_rightclick = (has_mesecons and toggle_switch),
on_timer = (has_mesecons and toggle_switch)
})
@ -71,7 +71,7 @@ minetest.register_node("scifi_nodes:switch_off", {
state = (has_mesecons and mesecon.state.off)
}
},
sounds = default.node_sound_glass_defaults(),
sounds = scifi_nodes.node_sound_glass_defaults(),
on_rightclick = (has_mesecons and toggle_switch)
})