Skip to content

Commit

Permalink
Fix item transfer dupe bug (#3306)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleepwalkerx committed Jan 23, 2024
1 parent a71ed62 commit c36fd9d
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -90,6 +90,7 @@ public static void setItems(PlayerEntity player, Map<Integer, Integer> slotIdMap
for (ItemStack oldCraftingItem : clearedCraftingItems) {
int added = addStack(container, inventorySlots, oldCraftingItem);
if (added < oldCraftingItem.getCount()) {
oldCraftingItem.shrink(added);
if (!player.inventory.add(oldCraftingItem)) {
player.drop(oldCraftingItem, false);
}
Expand Down

0 comments on commit c36fd9d

Please sign in to comment.