Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoudje committed Nov 9, 2024
1 parent 7f22bcc commit 95dd711
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private ItemStack self() {
default ItemStack getCraftingRemainder() {
ItemStack stack = self().getItem().getCraftingRemainder(self());
if (!stack.isEmpty() && stack.isDamageableItem() && stack.getDamageValue() > stack.getMaxDamage()) {
EventHooks.onPlayerDestroyItem(craftingPlayer.get(), stack, null);
EventHooks.onPlayerDestroyItem(CommonHooks.getCraftingPlayer(), stack, null);
return ItemStack.EMPTY;
}
return stack;
Expand Down

0 comments on commit 95dd711

Please sign in to comment.