From 34048d45a29d77c09dc28fda3cc730fa7c8bf1a6 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Sun, 11 May 2014 13:30:36 -0500 Subject: [PATCH] Don't erase inventory when someone asks for the drops... --- tile/AEBaseTile.java | 4 ---- tile/misc/TileCellWorkbench.java | 3 --- 2 files changed, 7 deletions(-) diff --git a/tile/AEBaseTile.java b/tile/AEBaseTile.java index 9b527300b..03a19d178 100644 --- a/tile/AEBaseTile.java +++ b/tile/AEBaseTile.java @@ -322,12 +322,8 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile, for (int l = 0; l < inv.getSizeInventory(); l++) { ItemStack is = inv.getStackInSlot( l ); - if ( is != null ) - { drops.add( is ); - inv.setInventorySlotContents( l, (ItemStack) null ); - } } } diff --git a/tile/misc/TileCellWorkbench.java b/tile/misc/TileCellWorkbench.java index 851c928f1..d31302f5f 100644 --- a/tile/misc/TileCellWorkbench.java +++ b/tile/misc/TileCellWorkbench.java @@ -174,10 +174,7 @@ public class TileCellWorkbench extends AEBaseTile implements IUpgradeableHost, I super.getDrops( w, x, y, z, drops ); if ( cell.getStackInSlot( 0 ) != null ) - { drops.add( cell.getStackInSlot( 0 ) ); - cell.setInventorySlotContents( 0, null ); - } } public ICellWorkbenchItem getCell()