Skip to content

Commit

Permalink
修复溜槽往雕纹书架中进书时会吞书
Browse files Browse the repository at this point in the history
fixed #262
  • Loading branch information
Gu-ZT committed Apr 13, 2024
1 parent 6beb95d commit b217c79
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 b217c79

Please sign in to comment.