From 815e26818ed449d85c0e441a4e6aae740cc3fbb2 Mon Sep 17 00:00:00 2001 From: Rseifert Date: Sun, 17 Feb 2013 05:10:31 -0500 Subject: [PATCH] fixed crash with last change Also confirmed fix for grab command, Entities are now picked up and not moved by the belt. --- .../common/machine/belt/TileEntityConveyorBelt.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/minecraft/assemblyline/common/machine/belt/TileEntityConveyorBelt.java b/src/minecraft/assemblyline/common/machine/belt/TileEntityConveyorBelt.java index c6461272..945890e9 100644 --- a/src/minecraft/assemblyline/common/machine/belt/TileEntityConveyorBelt.java +++ b/src/minecraft/assemblyline/common/machine/belt/TileEntityConveyorBelt.java @@ -120,13 +120,15 @@ public class TileEntityConveyorBelt extends TileEntityAssemblyNetwork implements } /* PROCESSES IGNORE LIST AND REMOVES UNNEED ENTRIES */ + List newList = new ArrayList(); for (Entity ent : IgnoreList) { - if (!this.getAffectedEntities().contains(ent)) + if (this.getAffectedEntities().contains(ent)) { - this.IgnoreList.remove(ent); + newList.add(ent); } } + this.IgnoreList = newList; if (this.isRunning() && !this.worldObj.isBlockIndirectlyGettingPowered(this.xCoord, this.yCoord, this.zCoord)) {