summaryrefslogtreecommitdiff
path: root/mesecons_gates/init.lua
diff options
context:
space:
mode:
authorJeija <jeija@mesecons.net>2014-01-19 13:59:22 +0100
committerJeija <jeija@mesecons.net>2014-01-19 13:59:22 +0100
commit8a71f51b265e7f62dd070e9a9315ccc7abccc7c0 (patch)
tree6080a79bb6ada8550b4c64a0e238c28eab38f28a /mesecons_gates/init.lua
parent7517cc4af16f225ff2a48fa9f8ed82f608bf0082 (diff)
parenta632a8abc80155118708108d846f52bbc230f257 (diff)
downloadmesecons-8a71f51b265e7f62dd070e9a9315ccc7abccc7c0.tar
mesecons-8a71f51b265e7f62dd070e9a9315ccc7abccc7c0.tar.gz
mesecons-8a71f51b265e7f62dd070e9a9315ccc7abccc7c0.tar.bz2
mesecons-8a71f51b265e7f62dd070e9a9315ccc7abccc7c0.tar.xz
mesecons-8a71f51b265e7f62dd070e9a9315ccc7abccc7c0.zip
Merge branch 'actionqueue'
This introduces the ActionQueue, a new kind of MESECONS_GLOBALSTEP. Circuits using delayers will now resume when restarting the server. Also, large circuits should automatically resume if parts of them are in unloaded chunks. Old circuits e.g. using gates will not resume when mesecons is updated, which means you have to restart them once. But after that, it should work just like it used to. This will fix a lot of stuff but may also introduce some new bugs. So please report them!
Diffstat (limited to 'mesecons_gates/init.lua')
-rw-r--r--mesecons_gates/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesecons_gates/init.lua b/mesecons_gates/init.lua
index 1a9ee83..51ed4af 100644
--- a/mesecons_gates/init.lua
+++ b/mesecons_gates/init.lua
@@ -23,7 +23,8 @@ function gate_get_input_rules_twoinputs(node)
return gate_rotate_rules(node)
end
-function update_gate(pos)
+function update_gate(pos, node, rulename, newstate)
+ yc_update_real_portstates(pos, node, rulename, newstate)
gate = get_gate(pos)
L = rotate_ports(
yc_get_real_portstates(pos),