Inscriber Recipe Handler, + Fixed Potential ME Chest Crash.

This commit is contained in:
AlgorithmX2
2014-03-13 13:26:55 -05:00
parent 9e14101240
commit 67be86a19a
2 changed files with 26 additions and 18 deletions
+6 -3
View File
@@ -105,10 +105,13 @@ public class Inscribe implements ICraftHandler, IWebsiteSeralizer
o += h.getName( output ) + "\n";
if ( plateB != null )
o += h.getName( plateB ) + "\n";
if ( plateA != null )
o += h.getName( plateA )+"\n";
o += h.getName( plateA );
o += h.getName(imprintable);
if ( plateB != null )
o += "\n"+h.getName( plateB );
return o;
}
+6 -1
View File
@@ -356,12 +356,16 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan
{
if ( !isCached )
{
icell = null;
fcell = null;
ItemStack is = inv.getStackInSlot( 1 );
if ( is != null )
{
isCached = true;
cellHandler = AEApi.instance().registries().cell().getHander( is );
if ( cellHandler != null )
{
double power = 1.0;
IMEInventoryHandler<IAEItemStack> itemCell = cellHandler.getCellInventory( is, StorageChannel.ITEMS );
@@ -378,6 +382,7 @@ public class TileChest extends AENetworkPowerTile implements IMEChest, IFluidHan
fcell = wrap( fluidCell );
}
}
}
switch (channel)
{