Skip to content

check if itemstack is stackable first#10285

Merged
Machine-Maker merged 1 commit into
PaperMC:masterfrom
granny:fix/inventory-itemstack-check
Mar 3, 2024
Merged

check if itemstack is stackable first#10285
Machine-Maker merged 1 commit into
PaperMC:masterfrom
granny:fix/inventory-itemstack-check

Conversation

@granny
Copy link
Copy Markdown
Contributor

@granny granny commented Feb 25, 2024

Avoids an issue where unstackable items are checked against themselves when an inventory is full of items.

For more context to paper devs who are in the purpur discord: https://discord.com/channels/685683385313919172/697248751575761057/1211147576213119006

This can and should be merged into a pre-existing patch - I'm not sure which one so I've left it as it's own for now.

@granny granny requested a review from a team as a code owner February 25, 2024 03:39
Copy link
Copy Markdown
Member

@electronicboy electronicboy left a comment

Choose a reason for hiding this comment

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

I believe that there is already a semi-related patch which does something similar elsewhere that this could be merged in-to as said

@DxrkCxt
Copy link
Copy Markdown

DxrkCxt commented Feb 25, 2024

I believe that there is already a semi-related patch which does something similar elsewhere that this could be merged in-to as said

This patch only partially fixes the problem, because the server will be overloaded with sending notifications that will show up as broadcastChanges() in spark.lucko.me.

@electronicboy
Copy link
Copy Markdown
Member

sending/dealing with a lot of nested data is always going to suck, theres not too much that can be done about that unless you have full control over stuff

granny added a commit to PurpurMC/Purpur that referenced this pull request Feb 27, 2024
github-actions Bot pushed a commit to PurpurMC/Tentacles that referenced this pull request Feb 27, 2024
Upstream has released updates that appear to apply and compile correctly

Purpur Changes:
PurpurMC/Purpur@d80fbed port PaperMC/Paper#10285
github-actions Bot pushed a commit to RealTriassic/LinearPaper that referenced this pull request Feb 28, 2024
Upstream has released updates that appear to apply and compile correctly

Purpur Changes:
PurpurMC/Purpur@d80fbed port PaperMC/Paper#10285
b0ykoe pushed a commit to InfernalSuite/AdvancedSlimePurpur that referenced this pull request Mar 2, 2024
b0ykoe pushed a commit to InfernalSuite/AdvancedSlimePurpur that referenced this pull request Mar 2, 2024
AlwaysUpToDate pushed a commit to PlazmaMC/PlazmaBukkit that referenced this pull request Mar 3, 2024
Upstream has released updates that appear to apply and compile correctly

[Purpur Changes]PurpurMC/Purpur@d80fbed: port PaperMC/Paper#10285

[Paper Changes]PaperMC/Paper@850b736: Close PRs opened from orgs or bot accounts (#10281)
@Machine-Maker Machine-Maker merged commit 54a2340 into PaperMC:master Mar 3, 2024
@granny granny deleted the fix/inventory-itemstack-check branch March 3, 2024 20:04
SoSeDiK added a commit to SoSeDiKs-Universe/Kiterino that referenced this pull request Mar 13, 2024
Upstream has released updates that appear to apply and compile correctly

Purpur Changes:
PurpurMC/Purpur@ec60d48 load config early for registerMinecraftDebugCommands option
PurpurMC/Purpur@9cd8eb4 move code back into tick method, closes #1493
PurpurMC/Purpur@8f4b0ae Updated Upstream (Paper)
PurpurMC/Purpur@1083e45 Updated Upstream (Paper)
PurpurMC/Purpur@d80fbed port PaperMC/Paper#10285
PurpurMC/Purpur@642956f Updated Upstream (Paper)
PurpurMC/Purpur@7e34461 Updated Upstream (Paper)
PurpurMC/Purpur@987f46f Update remapper version
PurpurMC/Purpur@65150b4 Updated Upstream (Paper)
LeonTG pushed a commit to LeonTG/Paper that referenced this pull request May 17, 2026
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.

5 participants