mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-25 18:00:19 +01:00
Fix 1-tick pulses causing delayers to get stuck in the on state (#663)
This commit is contained in:
parent
50a4bd6170
commit
59780437f2
@ -62,6 +62,8 @@ local def = {
|
|||||||
sounds = mesecon.node_sound.stone,
|
sounds = mesecon.node_sound.stone,
|
||||||
on_blast = mesecon.on_blastnode,
|
on_blast = mesecon.on_blastnode,
|
||||||
drop = "mesecons_delayer:delayer_off_1",
|
drop = "mesecons_delayer:delayer_off_1",
|
||||||
|
delayer_onstate = "mesecons_delayer:delayer_on_"..tostring(i),
|
||||||
|
delayer_offstate = "mesecons_delayer:delayer_off_"..tostring(i),
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Deactivated delayer definition defaults
|
-- Deactivated delayer definition defaults
|
||||||
@ -93,7 +95,6 @@ local off_state = {
|
|||||||
param2 = node.param2
|
param2 = node.param2
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
delayer_onstate = "mesecons_delayer:delayer_on_"..tostring(i),
|
|
||||||
mesecons = {
|
mesecons = {
|
||||||
receptor =
|
receptor =
|
||||||
{
|
{
|
||||||
@ -103,6 +104,7 @@ local off_state = {
|
|||||||
effector =
|
effector =
|
||||||
{
|
{
|
||||||
rules = delayer_get_input_rules,
|
rules = delayer_get_input_rules,
|
||||||
|
action_off = delayer_deactivate,
|
||||||
action_on = delayer_activate
|
action_on = delayer_activate
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -134,7 +136,6 @@ local on_state = {
|
|||||||
param2 = node.param2
|
param2 = node.param2
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
delayer_offstate = "mesecons_delayer:delayer_off_"..tostring(i),
|
|
||||||
mesecons = {
|
mesecons = {
|
||||||
receptor =
|
receptor =
|
||||||
{
|
{
|
||||||
@ -144,7 +145,8 @@ local on_state = {
|
|||||||
effector =
|
effector =
|
||||||
{
|
{
|
||||||
rules = delayer_get_input_rules,
|
rules = delayer_get_input_rules,
|
||||||
action_off = delayer_deactivate
|
action_off = delayer_deactivate,
|
||||||
|
action_on = delayer_activate
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user