We need to compare the item to check if its what we want before we can take it out

This commit is contained in:
Raoul Van den Berge
2016-03-24 22:34:34 +01:00
parent a8e6ea5439
commit 782f418364

View File

@@ -97,7 +97,7 @@ public class TileExternalStorage extends TileMachine implements IStorageProvider
if (connectedInventory instanceof IDeepStorageUnit) { if (connectedInventory instanceof IDeepStorageUnit) {
IDeepStorageUnit deep = (IDeepStorageUnit) connectedInventory; IDeepStorageUnit deep = (IDeepStorageUnit) connectedInventory;
if (deep.getStoredItemType() != null) { if (deep.getStoredItemType() != null && InventoryUtils.compareStackNoQuantity(deep.getStoredItemType(), stack)) {
if (deep.getStoredItemType().stackSize < quantity) { if (deep.getStoredItemType().stackSize < quantity) {
quantity = deep.getStoredItemType().stackSize; quantity = deep.getStoredItemType().stackSize;
} }