Skip to content
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

Update ExprHoverList for 1.21+ #6988

Merged
merged 12 commits into from
Sep 1, 2024

Conversation

Efnilite
Copy link
Member

Description

Fixes #6974 while maintaining backwards compatibility. Tested on 1.20.5 and 1.21.1 with the code used in the original issue. Not sure how I would add tests for this, please lmk for ideas.


Target Minecraft Versions: any
Requirements: none
Related Issues: #6974

@Efnilite Efnilite changed the title add new ListedPlayerInfo support Update ExprHoverList for 1.21+ Aug 20, 2024
@sovdeeth sovdeeth changed the base branch from master to dev/patch August 20, 2024 19:29
@sovdeeth sovdeeth added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.9 Targeting a 2.9.X version release labels Aug 20, 2024
Copy link
Member

@UnderscoreTud UnderscoreTud left a comment

Choose a reason for hiding this comment

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

You can use JUnit and call the event manually to test it

@Efnilite
Copy link
Member Author

@UnderscoreTud the event can only be called asynchronously, but it seems that this causes it to not complete the objectives as the event is called after the tests have completed, therefore saying that no objectives have been completed, despite the fact that they do actually complete. i've also had to do some trickery to make sure it recognizes it as the current test. any ideas on how to fix this?

src/test/skript/junit/ExprHoverList.sk Outdated Show resolved Hide resolved
Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
@Efnilite
Copy link
Member Author

before this is merged, #6988 (comment) needs to be addressed by someone who actually knows what they're doing

@sovdeeth sovdeeth mentioned this pull request Aug 30, 2024
1 task
@sovdeeth
Copy link
Member

I think it'd be better to simply remove the tests if we can't find a quick fix rather than put this off till 2.9.3

@Moderocky Moderocky added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Sep 1, 2024
@APickledWalrus APickledWalrus merged commit af202ac into SkriptLang:dev/patch Sep 1, 2024
6 checks passed
@Efnilite Efnilite deleted the new-hover-list branch September 26, 2024 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.9 Targeting a 2.9.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skript modifying hover list not working
5 participants