From 2788cad59ce5358af11ce0343a560b87e606c3ca Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 27 Jan 2018 16:25:38 +0100 Subject: [PATCH] Minor repeater refactor --- mods/ITEMS/REDSTONE/mesecons_delayer/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua b/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua index 787c3931b..fee8e2562 100644 --- a/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua @@ -189,7 +189,7 @@ if i == 1 then local snode = minetest.get_node(spos) local g = minetest.get_item_group(snode.name, "redstone_repeater") local sdef = minetest.registered_nodes[snode.name] - if g ~= 0 and sdef.mesecons.receptor.state == mesecon.state.on then + if g ~= 0 and mesecon.is_receptor_on(snode.name) then if mesecon.is_powered(pos, delayer_get_input_rules(node)[1]) ~= false then minetest.set_node(pos, {name="mesecons_delayer:delayer_on_locked", param2 = node.param2}) else