Skip to content

Commit

Permalink
Merge pull request #269 from Gu-ZT/ItemDepository
Browse files Browse the repository at this point in the history
修复溜槽往雕纹书架中进书时会吞书
  • Loading branch information
Gugle2308 authored Apr 13, 2024
2 parents 7ab8c01 + b217c79 commit 09d2fe6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ public static void exportToTarget(
int amountToInsert = sourceStack.getCount() - remainder.getCount();
if (amountToInsert > 0) {
sourceStack = source.extract(srcIndex, Math.min(maxAmount, amountToInsert), false);
insertItem(target, sourceStack, false);
remainder = insertItem(target, sourceStack, false);
maxAmount -= Math.min(maxAmount, amountToInsert);
source.insert(srcIndex, remainder, false);
}
if (maxAmount <= 0) return;
}
Expand Down

0 comments on commit 09d2fe6

Please sign in to comment.