From d13d4e60c8f1b82616765dda20f37530eae7bc94 Mon Sep 17 00:00:00 2001 From: Hea3veN Date: Thu, 22 Jan 2015 08:45:23 -0300 Subject: [PATCH] fix gate iteration when the "actions" are different than the "active actions", fixes #2350 --- common/buildcraft/transport/gates/ActionIterator.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/buildcraft/transport/gates/ActionIterator.java b/common/buildcraft/transport/gates/ActionIterator.java index c56a28de..176a40da 100755 --- a/common/buildcraft/transport/gates/ActionIterator.java +++ b/common/buildcraft/transport/gates/ActionIterator.java @@ -77,9 +77,7 @@ public class ActionIterator implements Iterable { } if (isValid()) { - next = new StatementSlot(); - next.statement = pipe.gates[curDir.ordinal()].actions[index]; - next.parameters = pipe.gates[curDir.ordinal()].actionParameters[index]; + next = pipe.gates[curDir.ordinal()].activeActions.get(index); } else { next = null; }