This is why I do playtesting
This commit is contained in:
@@ -92,7 +92,7 @@ public abstract class NBTStorage implements IStorage {
|
||||
}
|
||||
}
|
||||
|
||||
stacks.add(stack);
|
||||
stacks.add(stack.copy());
|
||||
|
||||
markDirty();
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ public class TileExternalStorage extends TileMachine implements IStorageProvider
|
||||
|
||||
if (storageUnit != null) {
|
||||
if (storageUnit.getStoredItemType() == null) {
|
||||
storageUnit.setStoredItemType(stack, stack.stackSize);
|
||||
storageUnit.setStoredItemType(stack.copy(), stack.stackSize);
|
||||
} else {
|
||||
storageUnit.setStoredItemCount(storageUnit.getStoredItemType().stackSize + stack.stackSize);
|
||||
}
|
||||
@@ -76,7 +76,7 @@ public class TileExternalStorage extends TileMachine implements IStorageProvider
|
||||
IItemHandler handler = getItemHandler();
|
||||
|
||||
if (handler != null) {
|
||||
ItemHandlerHelper.insertItem(handler, stack, false);
|
||||
ItemHandlerHelper.insertItem(handler, stack.copy(), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -402,7 +402,7 @@ public class TileController extends TileBase implements IEnergyReceiver, ISynchr
|
||||
ItemStack newStack = null;
|
||||
|
||||
for (IStorage storage : storages) {
|
||||
ItemStack took = storage.take(stack, requested - received, flags);
|
||||
ItemStack took = storage.take(stack, requested, flags);
|
||||
|
||||
if (took != null) {
|
||||
if (newStack == null) {
|
||||
|
||||
Reference in New Issue
Block a user