fix interface dupe (#2873)
This commit is contained in:
@@ -82,7 +82,7 @@ public class ItemStorageDisk implements IStorageDisk<ItemStack> {
|
|||||||
@Nonnull
|
@Nonnull
|
||||||
public ItemStack insert(@Nonnull ItemStack stack, int size, Action action) {
|
public ItemStack insert(@Nonnull ItemStack stack, int size, Action action) {
|
||||||
if (stack.isEmpty() || itemCount == capacity) {
|
if (stack.isEmpty() || itemCount == capacity) {
|
||||||
return stack;
|
return ItemHandlerHelper.copyStackWithSize(stack, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (ItemStack otherStack : stacks.get(stack.getItem())) {
|
for (ItemStack otherStack : stacks.get(stack.getItem())) {
|
||||||
|
Reference in New Issue
Block a user