Don't erase inventory when someone asks for the drops...
This commit is contained in:
@@ -322,12 +322,8 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
|
|||||||
for (int l = 0; l < inv.getSizeInventory(); l++)
|
for (int l = 0; l < inv.getSizeInventory(); l++)
|
||||||
{
|
{
|
||||||
ItemStack is = inv.getStackInSlot( l );
|
ItemStack is = inv.getStackInSlot( l );
|
||||||
|
|
||||||
if ( is != null )
|
if ( is != null )
|
||||||
{
|
|
||||||
drops.add( is );
|
drops.add( is );
|
||||||
inv.setInventorySlotContents( l, (ItemStack) null );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -174,10 +174,7 @@ public class TileCellWorkbench extends AEBaseTile implements IUpgradeableHost, I
|
|||||||
super.getDrops( w, x, y, z, drops );
|
super.getDrops( w, x, y, z, drops );
|
||||||
|
|
||||||
if ( cell.getStackInSlot( 0 ) != null )
|
if ( cell.getStackInSlot( 0 ) != null )
|
||||||
{
|
|
||||||
drops.add( cell.getStackInSlot( 0 ) );
|
drops.add( cell.getStackInSlot( 0 ) );
|
||||||
cell.setInventorySlotContents( 0, null );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ICellWorkbenchItem getCell()
|
public ICellWorkbenchItem getCell()
|
||||||
|
|||||||
Reference in New Issue
Block a user