Skip to content

Commit

Permalink
Fix threshold switch not reading big stacks properly
Browse files Browse the repository at this point in the history
Fixes #1427
Fixes #1459
  • Loading branch information
IThundxr committed Jun 27, 2024
1 parent 6647c49 commit 84f54d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public void updateCurrentLevel() {
invVersionTracker.awaitNewVersion(inv);
for (StorageView<ItemVariant> view : inv) {
ItemStack stackInSlot = view.getResource().toStack();
long space = Math.min(stackInSlot.getMaxStackSize(), view.getCapacity());
long space = view.getCapacity();
long count = view.getAmount();
if (space == 0)
continue;
Expand Down

0 comments on commit 84f54d7

Please sign in to comment.