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

Fix unwanted behaviour with show-coordinates #2151

Merged
merged 7 commits into from
Apr 21, 2021
Merged

Fix unwanted behaviour with show-coordinates #2151

merged 7 commits into from
Apr 21, 2021

Conversation

Konicai
Copy link
Member

@Konicai Konicai commented Apr 19, 2021

  • If reducedDebugInfo gamerule is enabled, clients will not have the coordinate display. Whenever the gamerule is set/toggled the changes will apply immediately. Note that gamerules are dimensions specific.
  • If show-coords is disabled in the geyser config, clients will not have the coordinate display.
  • Removes the option in the client's settings if either of the above apply

Client preference is only remembered during a single session (it is enabled by default at the start). From what I understand it would require us to start storing information. Creating a whole database just for this would seem overkill. We could implement another config option that dictates whether the client preference is initially enabled or disabled.

The concern with rtm's PR was that the javadoc wasn't accurate (I would have PR'd into his fork but there were dependency issues).

resolves #1700

@Konicai
Copy link
Member Author

Konicai commented Apr 19, 2021

Also I'd propose setting the showcoordinates gamerule in the StartGamePacket to false because the client will always see 0, y, 0 between then and here, where the decision is calculated properly.

@Camotoy
Copy link
Member

Camotoy commented Apr 21, 2021

Can you set the reduced debug info also from the JoinGamePacket? Just shove a session.setReducedDebugInfo(packet.isReducedDebugInfo()); after a new line below the isImmediateRespawn stuff. Then this looks good for merge for me.

@Konicai
Copy link
Member Author

Konicai commented Apr 21, 2021

Can you set the reduced debug info also from the JoinGamePacket? Just shove a session.setReducedDebugInfo(packet.isReducedDebugInfo()); after a new line below the isImmediateRespawn stuff. Then this looks good for merge for me.

Sorry, I can't seem to find the isImmediateRespawn stuff that you're talking about?

@Konicai
Copy link
Member Author

Konicai commented Apr 21, 2021

I was looking in StartGame packet 🤦‍♂️

@Camotoy Camotoy merged commit 0a79eb9 into GeyserMC:master Apr 21, 2021
@Konicai Konicai deleted the fix-show-coords branch May 3, 2021 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coordinates
3 participants