fix interface dupe (#2873)

This commit is contained in:
Darkere
2021-02-07 21:47:19 +01:00
committed by GitHub
parent 6fae37bd67
commit 2615876409

View File

@@ -82,7 +82,7 @@ public class ItemStorageDisk implements IStorageDisk<ItemStack> {
@Nonnull
public ItemStack insert(@Nonnull ItemStack stack, int size, Action action) {
if (stack.isEmpty() || itemCount == capacity) {
return stack;
return ItemHandlerHelper.copyStackWithSize(stack, size);
}
for (ItemStack otherStack : stacks.get(stack.getItem())) {