Skip to content

Use ItemStack sensitive getCraftingRemainder in vanilla code#3157

Merged
Shadows-of-Fire merged 3 commits into
neoforged:26.1.xfrom
Sirttas:fix-get-crafting-result
May 16, 2026
Merged

Use ItemStack sensitive getCraftingRemainder in vanilla code#3157
Shadows-of-Fire merged 3 commits into
neoforged:26.1.xfrom
Sirttas:fix-get-crafting-result

Conversation

@Sirttas
Copy link
Copy Markdown
Contributor

@Sirttas Sirttas commented May 9, 2026

NeoForge allows mods to override getCraftingRemainder per ItemStack instance (rather than just per Item). Vanilla code was calling the Item-level method directly, bypassing any stack-sensitive overrides registered by mods.

@neoforged-automation neoforged-automation Bot added the 26.1 Targeted at Minecraft 26.1 label May 9, 2026
@neoforged-pr-publishing
Copy link
Copy Markdown

  • Publish PR to GitHub Packages

Copy link
Copy Markdown
Member

@sciwhiz12 sciwhiz12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs one change. Otherwise, looks fine.

Comment thread patches/net/minecraft/world/item/crafting/Ingredient.java.patch Outdated
@sciwhiz12 sciwhiz12 added bug A bug or error regression Worked previously but doesn't anymore labels May 12, 2026
@XFactHD XFactHD linked an issue May 12, 2026 that may be closed by this pull request
@Sirttas Sirttas force-pushed the fix-get-crafting-result branch 3 times, most recently from c068fec to 7988b99 Compare May 14, 2026 09:06
@Sirttas Sirttas force-pushed the fix-get-crafting-result branch from 7988b99 to 137aba3 Compare May 14, 2026 09:09
@Sirttas Sirttas requested review from ApexModder and sciwhiz12 May 14, 2026 09:16
Comment thread patches/net/minecraft/world/item/crafting/Ingredient.java.patch Outdated
Copy link
Copy Markdown
Member

@ApexModder ApexModder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks fine to me aside from the change in Ingredient.java.patch

@Sirttas Sirttas force-pushed the fix-get-crafting-result branch from 8456564 to 174393f Compare May 14, 2026 15:13
@Sirttas Sirttas requested a review from ApexModder May 14, 2026 15:14
Copy link
Copy Markdown
Member

@ApexModder ApexModder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@Shadows-of-Fire Shadows-of-Fire merged commit 8d01506 into neoforged:26.1.x May 16, 2026
6 of 7 checks passed
@neoforged-releases
Copy link
Copy Markdown

🚀 This PR has been released as NeoForge version 26.1.2.57-beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

26.1 Targeted at Minecraft 26.1 bug A bug or error regression Worked previously but doesn't anymore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[26.1] Furnace crafting remainder doesn't consider the stack.

5 participants