Skip to content

Commit

Permalink
🐛 Make sure to use the correct stack size when recovering the origina…
Browse files Browse the repository at this point in the history
…l stack
  • Loading branch information
skerit committed Jun 22, 2024
1 parent 22363e9 commit 844c665
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ public static ItemStack recoverOriginalItem(ItemStack input) {
} else {
// Return the original only if it's present
var polymcOriginal = result.result().orElseThrow();
return polymcOriginal.orElse(input);
ItemStack recovered_stack = polymcOriginal.orElse(input);
recovered_stack.setCount(input.getCount());
return recovered_stack;
}
}

Expand Down

0 comments on commit 844c665

Please sign in to comment.