mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Restrict is_powered call in mesecons_delayer
This commit is contained in:
parent
878743cee5
commit
719e5193d8
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ local check_unlock_repeater = function(pos, node)
|
|||
end
|
||||
end
|
||||
if not fail then
|
||||
if mesecon.is_powered(lpos) then
|
||||
if mesecon.is_powered(lpos, delayer_get_input_rules(lnode)[1]) then
|
||||
minetest.swap_node(lpos, {name="mesecons_delayer:delayer_on_1", param2=lnode.param2})
|
||||
mesecon.queue:add_action(lpos, "receptor_on", {delayer_get_output_rules(lnode)}, ldef.delayer_time, nil)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue