-
-
Notifications
You must be signed in to change notification settings - Fork 385
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
Improve default comparator resolution #7287
Improve default comparator resolution #7287
Conversation
should we still retain the original check too? can we add a test? |
i'm not sure the original check ended up doing much (hence the need for this PR). if there were any cases where it was, they should still work with this PR, just with the classinfo resolution instead. |
@APickledWalrus what's the state of this? |
Looking over it, it should be fine to merge. I can't imagine this would cause any issues (famous last words? 🙂). |
Description
This PR aims to fix the root issue that motivated PRs such as #7251. I have not reverted those changes, as it does not hurt to register the comparator directly. This needs further testing, but it should avoid the issues of allowing comparisons of unrelated classes that happen to share an interface (e.g. PersistentDataHolders).
Target Minecraft Versions: any
Requirements: none
Related Issues: none