Skip to content

Fix StoredEnchants reordering inconsistently#7335

Closed
Machine-Maker wants to merge 1 commit into
PaperMC:masterfrom
Machine-Maker:fix/stored-enchant-reordering
Closed

Fix StoredEnchants reordering inconsistently#7335
Machine-Maker wants to merge 1 commit into
PaperMC:masterfrom
Machine-Maker:fix/stored-enchant-reordering

Conversation

@Machine-Maker
Copy link
Copy Markdown
Member

Fixes #6437

Tested using the reproduction steps outlined in above issue.

I think its better to not reorder stored enchants, as the order does have an effect on anvil usage. It's also a smaller diff, less to maintain, and will change 0 existing items, only newly created ones as LinkedHashSets keep the order from the EnchantmentMap but don't change it.

@Machine-Maker Machine-Maker requested a review from a team as a code owner January 14, 2022 08:27
@stale
Copy link
Copy Markdown

stale Bot commented Mar 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@Machine-Maker Machine-Maker force-pushed the fix/stored-enchant-reordering branch from 9254a92 to b744bed Compare March 17, 2022 01:03
@stale stale Bot removed the resolution: stale label Mar 17, 2022
@Machine-Maker
Copy link
Copy Markdown
Member Author

Rebased for 1.18.2

@stale
Copy link
Copy Markdown

stale Bot commented May 31, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@Machine-Maker Machine-Maker force-pushed the fix/stored-enchant-reordering branch from b744bed to b8bea81 Compare June 3, 2022 19:29
@stale stale Bot removed the resolution: stale label Jun 3, 2022
@Machine-Maker
Copy link
Copy Markdown
Member Author

Rebased and updated

@Warriorrrr
Copy link
Copy Markdown
Member

Closing in favour of #8711

@Warriorrrr Warriorrrr closed this Sep 9, 2023
@Machine-Maker Machine-Maker deleted the fix/stored-enchant-reordering branch September 14, 2023 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

Stored enchantments of enchanted book items are prone to be reordered, causing item stack comparisons to fail in some cases

2 participants