diff --git a/src/main/java/net/neoforged/neoforge/common/extensions/IItemStackExtension.java b/src/main/java/net/neoforged/neoforge/common/extensions/IItemStackExtension.java index 4237f37617..4fa15f8d8b 100644 --- a/src/main/java/net/neoforged/neoforge/common/extensions/IItemStackExtension.java +++ b/src/main/java/net/neoforged/neoforge/common/extensions/IItemStackExtension.java @@ -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;