mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2025-06-29 22:50:48 +02:00
Opt-depend on all mods (#58)
* move "dye" to optional depends and disable recipes if default or dye are not available * replace default.LIGHT_MAX with minetest.LIGHT_MAX * add sound-switch and use default if available * enable crate and builder only if default mod is available * move default mod to opt-depends and use screwdriver only if available Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
This commit is contained in:
@ -51,7 +51,7 @@ minetest.register_node("scifi_nodes:protected_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)
|
||||
})
|
||||
@ -78,7 +78,7 @@ minetest.register_node("scifi_nodes:protected_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)
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user