AlgorithmX2
2014-05-24 11:02:24 -05:00
parent 6e1a0aabb6
commit 82a8e2d045
+4 -1
View File
@@ -170,6 +170,8 @@ public class CableBusContainer implements AEMultiTile, ICableBusContainer
is.stackSize = 1; is.stackSize = 1;
IPart bp = bi.createPartFromItemStack( is ); IPart bp = bi.createPartFromItemStack( is );
if ( bp != null )
{
if ( bp instanceof IPartCable ) if ( bp instanceof IPartCable )
{ {
boolean canPlace = true; boolean canPlace = true;
@@ -191,6 +193,7 @@ public class CableBusContainer implements AEMultiTile, ICableBusContainer
return getPart( side ) == null; return getPart( side ) == null;
} }
} }
}
return false; return false;
} }
@@ -701,7 +704,7 @@ public class CableBusContainer implements AEMultiTile, ICableBusContainer
p.readFromNBT( extra ); p.readFromNBT( extra );
} }
else else
throw new RuntimeException( "Invalid NBT For CableBus Container." ); throw new RuntimeException( "Invalid NBT For CableBus Container: " + iss.getItem().getClass().getName() + " is not a valid part." );
} }
} }
else else