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

Correct very incorrect names in ServerScoreboard #3967

Merged
merged 2 commits into from
Aug 24, 2024

Conversation

Octol1ttle
Copy link
Contributor

@Octol1ttle Octol1ttle commented Aug 24, 2024

Fixes #3850

The proposed names may bring up some concerns, so I'm gonna explain them here:

objectives -> syncableObjectives: The original issue proposed syncedObjectives and visibleObjectives. syncedObjectives can sound like "objectives that are [already] synced", which is wrong (the field stores objectives whose changes will be synced with all clients)
I discarded visibleObjectives because the main purpose of ServerScoreboard is to synchronize objectives with clients (what it does). How it chooses which objectives to synchronize is an implementation detail

As such, the methods were named startSyncing and stopSyncing accordingly, instead of, for example, markVisible and unmarkVisible (which wouldn't mean anything)

@Shnupbups Shnupbups merged commit c374998 into FabricMC:24w34a Aug 24, 2024
3 checks passed
@Octol1ttle Octol1ttle deleted the fix-3850 branch August 24, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants