Skip to content

Normalize legacy text before deserializing#5710

Closed
pop4959 wants to merge 4 commits intoEssentialsX:2.xfrom
pop4959:fix-5709
Closed

Normalize legacy text before deserializing#5710
pop4959 wants to merge 4 commits intoEssentialsX:2.xfrom
pop4959:fix-5709

Conversation

@pop4959
Copy link
Member

@pop4959 pop4959 commented Feb 26, 2024

Looks like Adventure's legacy deserializer does not like it when color codes are capitalized. Unfortunately this is quite common, and exposed to users (e.g. nicknames). Normalize this.

Ideally fixed in the serializer, but this should work fine as a hotfix.

Fixes #5708, #5709.

@pop4959 pop4959 added type: bugfix PRs that fix bugs in EssentialsX. module: main Issues or PRs for the main Essentials module misc: adventure Issues and PRs related to the Adventure refactor. Temporary label during 2.21.x cycle. labels Feb 26, 2024
@pop4959
Copy link
Member Author

pop4959 commented Feb 26, 2024

I have no clue how the economy test is failing since it has literally nothing to do with this change.

@pop4959
Copy link
Member Author

pop4959 commented Feb 26, 2024

Never mind, apparently it does touch it somehow and it's 3 am so I'm being dumb.

@pop4959
Copy link
Member Author

pop4959 commented Feb 26, 2024

Better impl in #5711.

@pop4959 pop4959 deleted the fix-5709 branch February 26, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

misc: adventure Issues and PRs related to the Adventure refactor. Temporary label during 2.21.x cycle. module: main Issues or PRs for the main Essentials module type: bugfix PRs that fix bugs in EssentialsX.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

everyone is missing from /list except players starting with A?

1 participant

Comments