-
-
Notifications
You must be signed in to change notification settings - Fork 213
Fix ComponentItemHandler#extractItem sometimes returning an incorrect result #2137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Last commit published: 28c8455e77b0cc2e55614607f932202ecdd9178f. PR PublishingThe artifacts published by this PR:
Repository DeclarationIn order to use the artifacts published by the PR, add the following repository to your buildscript: repositories {
maven {
name 'Maven for PR #2137' // https://github.com/neoforged/NeoForge/pull/2137
url 'https://prmaven.neoforged.net/NeoForge/pr2137'
content {
includeModule('net.neoforged', 'neoforge')
includeModule('net.neoforged', 'testframework')
}
}
} MDK installationIn order to setup a MDK using the latest PR version, run the following commands in a terminal. mkdir NeoForge-pr2137
cd NeoForge-pr2137
curl -L https://prmaven.neoforged.net/NeoForge/pr2137/net/neoforged/neoforge/21.5.41-beta-pr-2137-handler_fix/mdk-pr2137.zip -o mdk.zip
jar xf mdk.zip
rm mdk.zip || del mdk.zip To test a production environment, you can download the installer from here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed that the unit test as changed here fails without the PR's fix, and succeeds with the PR's fix implemented.
@neoforged/bots backport 1.21.1 |
Backporting to |
🚀 This PR has been released as NeoForge version |
This comment has been minimized.
This comment has been minimized.
Created backport PR: #2139 |
If attempting to extract more of an item than is stored from a ComponentItemHandler, it would return the incorrect result if there was less of it stored than the max stack size.
https://discord.com/channels/313125603924639766/1154167065519861831/1361341413152919673