fixed crash with last change

Also confirmed fix for grab command, Entities are now picked up and not
moved by the belt.
This commit is contained in:
Rseifert 2013-02-17 05:10:31 -05:00
parent a69f2375a1
commit 815e26818e

View file

@ -120,13 +120,15 @@ public class TileEntityConveyorBelt extends TileEntityAssemblyNetwork implements
} }
/* PROCESSES IGNORE LIST AND REMOVES UNNEED ENTRIES */ /* PROCESSES IGNORE LIST AND REMOVES UNNEED ENTRIES */
List<Entity> newList = new ArrayList<Entity>();
for (Entity ent : IgnoreList) 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)) if (this.isRunning() && !this.worldObj.isBlockIndirectlyGettingPowered(this.xCoord, this.yCoord, this.zCoord))
{ {