Work around bug #1070
This commit is contained in:
@@ -198,9 +198,11 @@ public class StackListItem implements IStackList<ItemStack> {
|
|||||||
compare |= IComparer.COMPARE_DAMAGE;
|
compare |= IComparer.COMPARE_DAMAGE;
|
||||||
}
|
}
|
||||||
ItemStack actualInput = list.get(input, compare);
|
ItemStack actualInput = list.get(input, compare);
|
||||||
ItemStack taken = ItemHandlerHelper.copyStackWithSize(actualInput, input.getCount());
|
if (actualInput != null) {
|
||||||
took[i] = taken;
|
ItemStack taken = ItemHandlerHelper.copyStackWithSize(actualInput, input.getCount());
|
||||||
list.remove(taken, taken.getCount());
|
took[i] = taken;
|
||||||
|
list.remove(taken, taken.getCount());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return took;
|
return took;
|
||||||
|
Reference in New Issue
Block a user