diff options
author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2021-07-24 12:40:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-24 18:40:43 +0200 |
commit | db5879706d04d3480bc4863ce0c03fa73e5f10c7 (patch) | |
tree | 947f9df560eb2e9f1e66d929596db81b1cdb3aed | |
parent | 65793514fe614147c5141ae7797be402b5e6d25d (diff) | |
download | mesecons-db5879706d04d3480bc4863ce0c03fa73e5f10c7.tar mesecons-db5879706d04d3480bc4863ce0c03fa73e5f10c7.tar.gz mesecons-db5879706d04d3480bc4863ce0c03fa73e5f10c7.tar.bz2 mesecons-db5879706d04d3480bc4863ce0c03fa73e5f10c7.tar.xz mesecons-db5879706d04d3480bc4863ce0c03fa73e5f10c7.zip |
Fix on_placenode conductor turnon link direction (#572)
-rw-r--r-- | mesecons/services.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons/services.lua b/mesecons/services.lua index b1388ec..cd47b0a 100644 --- a/mesecons/services.lua +++ b/mesecons/services.lua @@ -16,7 +16,7 @@ mesecon.on_placenode = function(pos, node) -- also call receptor_on if itself is powered already, so that neighboring -- conductors will be activated (when pushing an on-conductor with a piston) for _, s in ipairs(sources) do - local rule = vector.subtract(pos, s) + local rule = vector.subtract(s, pos) mesecon.turnon(pos, rule) end --mesecon.receptor_on (pos, mesecon.conductor_get_rules(node)) |