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:
parent
a69f2375a1
commit
815e26818e
1 changed files with 4 additions and 2 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue