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
|
@ -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},
|
{dig_immediate=3, dig_by_water=1, redstone_torch=1, mesecon_ignore_opaque_dig=1},
|
||||||
mcl_sounds.node_sound_wood_defaults(),
|
mcl_sounds.node_sound_wood_defaults(),
|
||||||
{
|
{
|
||||||
|
on_destruct = function(pos, oldnode)
|
||||||
|
local node = minetest.get_node(pos)
|
||||||
|
torch_action_on(pos, node)
|
||||||
|
end,
|
||||||
mesecons = {
|
mesecons = {
|
||||||
receptor = {
|
receptor = {
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
|
|
|
@ -360,6 +360,7 @@ function mcl_doors:register_door(name, def)
|
||||||
|
|
||||||
mesecons = { effector = {
|
mesecons = { effector = {
|
||||||
action_on = on_mesecons_signal_open_top,
|
action_on = on_mesecons_signal_open_top,
|
||||||
|
rules = mesecon.rules.flat,
|
||||||
}},
|
}},
|
||||||
|
|
||||||
on_rotate = function(pos, node, user, mode, param2)
|
on_rotate = function(pos, node, user, mode, param2)
|
||||||
|
@ -478,6 +479,7 @@ function mcl_doors:register_door(name, def)
|
||||||
|
|
||||||
mesecons = { effector = {
|
mesecons = { effector = {
|
||||||
action_off = on_mesecons_signal_close_top,
|
action_off = on_mesecons_signal_close_top,
|
||||||
|
rules = mesecon.rules.flat,
|
||||||
}},
|
}},
|
||||||
|
|
||||||
on_rotate = function(pos, node, user, mode, param2)
|
on_rotate = function(pos, node, user, mode, param2)
|
||||||
|
|
|
@ -2,3 +2,4 @@ mcl_core
|
||||||
mcl_sounds
|
mcl_sounds
|
||||||
doc?
|
doc?
|
||||||
screwdriver?
|
screwdriver?
|
||||||
|
mesecons
|
||||||
|
|
Loading…
Reference in New Issue
Block a user