Fix redstone dust climbing up doors, and fix redstone dust not turning off when redstone torch is destroyed through the destruction of an attached block
This commit is contained in:
parent
1a0e979b0c
commit
a20637f68c
3 changed files with 7 additions and 0 deletions
|
@ -176,6 +176,10 @@ mcl_torches.register_torch("mesecon_torch_on", S("Redstone Torch"),
|
|||
{dig_immediate=3, dig_by_water=1, redstone_torch=1, mesecon_ignore_opaque_dig=1},
|
||||
mcl_sounds.node_sound_wood_defaults(),
|
||||
{
|
||||
on_destruct = function(pos, oldnode)
|
||||
local node = minetest.get_node(pos)
|
||||
torch_action_on(pos, node)
|
||||
end,
|
||||
mesecons = {
|
||||
receptor = {
|
||||
state = mesecon.state.on,
|
||||
|
|
|
@ -360,6 +360,7 @@ function mcl_doors:register_door(name, def)
|
|||
|
||||
mesecons = { effector = {
|
||||
action_on = on_mesecons_signal_open_top,
|
||||
rules = mesecon.rules.flat,
|
||||
}},
|
||||
|
||||
on_rotate = function(pos, node, user, mode, param2)
|
||||
|
@ -478,6 +479,7 @@ function mcl_doors:register_door(name, def)
|
|||
|
||||
mesecons = { effector = {
|
||||
action_off = on_mesecons_signal_close_top,
|
||||
rules = mesecon.rules.flat,
|
||||
}},
|
||||
|
||||
on_rotate = function(pos, node, user, mode, param2)
|
||||
|
|
|
@ -2,3 +2,4 @@ mcl_core
|
|||
mcl_sounds
|
||||
doc?
|
||||
screwdriver?
|
||||
mesecons
|
||||
|
|
Reference in a new issue