Fixed another FMP related Crash.

This commit is contained in:
AlgorithmX2 2014-07-26 16:34:26 -05:00
parent ab78f940db
commit 88f2abbfd4

View file

@ -18,6 +18,7 @@ import appeng.api.util.DimensionalCoord;
import appeng.facade.FacadeContainer; import appeng.facade.FacadeContainer;
import appeng.util.Platform; import appeng.util.Platform;
import codechicken.lib.vec.BlockCoord; import codechicken.lib.vec.BlockCoord;
import codechicken.multipart.TMultiPart;
import codechicken.multipart.TileMultipart; import codechicken.multipart.TileMultipart;
public class FMPPlacementHelper implements IPartHost public class FMPPlacementHelper implements IPartHost
@ -47,11 +48,17 @@ public class FMPPlacementHelper implements IPartHost
{ {
if ( myPart.isEmpty() ) if ( myPart.isEmpty() )
{ {
if ( hasPart ) scala.collection.Iterator<TMultiPart> i = myMP.partList().iterator();
while (i.hasNext())
{
TMultiPart p = i.next();
if ( p == myPart )
{ {
myMP.remPart( myPart ); myMP.remPart( myPart );
hasPart = false; break;
} }
}
hasPart = false;
myPart = null; myPart = null;
} }
} }