Skip to content

Commit

Permalink
Fix appeng.api.exceptions.AppEngTileMissingException cycling assemble…
Browse files Browse the repository at this point in the history
…r CPUs

Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed Jul 13, 2013
1 parent 5bf9f3a commit f6b3b53
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions resources/patches-deobfuscated.xml
Expand Up @@ -1571,11 +1571,15 @@
Iterator i = Assemblers.iterator();
while (i.hasNext()) {
appeng.api.TileRef ar = (appeng.api.TileRef) i.next();
appeng.me.tile.TileAssembler a = (appeng.me.tile.TileAssembler)ar.getTile();
if (a.ac != null) {
if (Clusters.indexOf(a.ac) == -1) {
Clusters.add(a.ac);
try {
appeng.me.tile.TileAssembler a = (appeng.me.tile.TileAssembler)ar.getTile();
if (a.ac != null) {
if (Clusters.indexOf(a.ac) == -1) {
Clusters.add(a.ac);
}
}
} catch(appeng.api.exceptions.AppEngTileMissingException e) {
i.remove();
}
}
i = Clusters.iterator();
Expand All @@ -1588,7 +1592,6 @@
catch (Exception err) {
Log.warning(&quot;Exception cycling assembler CPUs&quot;, err);
}
if (this.CraftingQueue.size() == 0) return;
appeng.api.me.util.IMEInventory invItemPool = getCellArray();
if (invItemPool == null) {
Expand Down Expand Up @@ -1669,8 +1672,6 @@
ac.addCraft();
}
x.Craft(this, pattern, invItemPool, this.CraftingQueue, this.WaitingQueue);
} else {
break;
}
int amount = x.getAmount();
if (lastAmount == amount &amp;&amp; i > 4) {
Expand Down

0 comments on commit f6b3b53

Please sign in to comment.