From 930ecf9be114d2d6648dabbb787486104351f7f4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 26 Jan 2018 21:53:27 +0100 Subject: [PATCH] Fix rs not turnoff if rtorch is hor. behind opaque --- mods/ITEMS/REDSTONE/mesecons/internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/REDSTONE/mesecons/internal.lua b/mods/ITEMS/REDSTONE/mesecons/internal.lua index b1eead326..7986c2908 100644 --- a/mods/ITEMS/REDSTONE/mesecons/internal.lua +++ b/mods/ITEMS/REDSTONE/mesecons/internal.lua @@ -486,7 +486,7 @@ function mesecon.turnoff(pos, link) if mesecon.is_receptor_on(n.name) then local receptorrules = mesecon.receptor_get_rules(n) for _, rr in pairs(receptorrules) do - if vector.equals(mesecon.invertRule(rr), r) then + if rr.spread and vector.equals(mesecon.invertRule(rr), r) then return false end end