Skip to content

Fix ItemStackLike#maxStackQuantity#2581

Closed
MrHell228 wants to merge 2 commits intoSpongePowered:api-12from
MrHell228:api-12-itemstack-fix
Closed

Fix ItemStackLike#maxStackQuantity#2581
MrHell228 wants to merge 2 commits intoSpongePowered:api-12from
MrHell228:api-12-itemstack-fix

Conversation

@MrHell228
Copy link
Contributor

@MrHell228 MrHell228 commented Feb 22, 2025

SpongeAPI | Sponge

Apparently when adding ItemStackLike I didn't notice that Keys.MAX_STACK_SIZE is not available for some stacks so exception is thrown when you call maxStackQuantity() on damageable items

@MrHell228 MrHell228 force-pushed the api-12-itemstack-fix branch from a63684c to 3e2dc4f Compare February 22, 2025 23:17
@MrHell228 MrHell228 closed this Mar 12, 2025
@MrHell228 MrHell228 deleted the api-12-itemstack-fix branch March 12, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant