-
Notifications
You must be signed in to change notification settings - Fork 829
Simplify LobbyPlayer.equals() return logic #9591
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
Conversation
|
Could simplify it even further with an |
|
Also, |
e613499 to
350175c
Compare
Great point - I removed the override altogether. Tests pass and game runs as expected. |
No, we meant use Objects.equals For |
Right, I see the difference. IntelliJ warned about requiring a class check, so the code would look something like this: Does this behave differently (for our purpose) from allowing |
|
The difference is avatarIndex and the other properties should be ignored |
I think it's there now :) |
No description provided.