Restrict is_powered call in mesecons_delayer

This commit is contained in:
Wuzzy 2018-01-27 14:34:50 +01:00
parent 878743cee5
commit 719e5193d8
1 changed files with 1 additions and 1 deletions

View File

@ -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