diff options
| author | Jeija <norrepli@gmail.com> | 2012-12-21 16:04:19 +0100 | 
|---|---|---|
| committer | Jeija <norrepli@gmail.com> | 2012-12-21 16:04:19 +0100 | 
| commit | 9019a4aff7a59bf5d6b4bc1efa177ffd45f6d125 (patch) | |
| tree | 2b36341b3908b04dbeb0a3882ff2b6bb18e82303 | |
| parent | f114cb8ddcbb2e007889a6bf45b8b3383c793756 (diff) | |
| download | mesecons-9019a4aff7a59bf5d6b4bc1efa177ffd45f6d125.tar mesecons-9019a4aff7a59bf5d6b4bc1efa177ffd45f6d125.tar.gz mesecons-9019a4aff7a59bf5d6b4bc1efa177ffd45f6d125.tar.bz2 mesecons-9019a4aff7a59bf5d6b4bc1efa177ffd45f6d125.tar.xz mesecons-9019a4aff7a59bf5d6b4bc1efa177ffd45f6d125.zip | |
Bugfix, wires sometimes turned off for no reason
| -rw-r--r-- | mesecons/init.lua | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/mesecons/init.lua b/mesecons/init.lua index 6378946..f53a5bf 100644 --- a/mesecons/init.lua +++ b/mesecons/init.lua @@ -93,7 +93,7 @@ function mesecon:receptor_off(pos, rules)  	for _, rule in ipairs(rules) do  		local np = mesecon:addPosRule(pos, rule)  		local link, rulename = mesecon:rules_link(pos, np, rules) -		if link then +		if link and not mesecon:connected_to_receptor(np) then  			mesecon:turnoff(np, rulename)  		end  	end | 
