Skip to content

Commit

Permalink
Merge pull request #467 from ferriarnus/updateonshift
Browse files Browse the repository at this point in the history
  • Loading branch information
Rover656 committed Aug 16, 2023
2 parents 351f723 + d83a19f commit 38a1f32
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ protected boolean moveItemStackTo(ItemStack stack, int startIndex, int endIndex,
if (j <= maxSize) {
stack.setCount(0);
itemstack.setCount(j);
slot.setChanged();
slot.set(itemstack);
flag = true;
} else if (itemstack.getCount() < maxSize) {
stack.shrink(maxSize - itemstack.getCount());
itemstack.setCount(maxSize);
slot.setChanged();
slot.set(itemstack);
flag = true;
}
}
Expand Down

0 comments on commit 38a1f32

Please sign in to comment.