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 forced zoom issue when switching into spectator mode, use new spectator mode #4093

Merged
merged 5 commits into from
Sep 6, 2023

Conversation

onebeastchris
Copy link
Member

@onebeastchris onebeastchris commented Aug 31, 2023

Should fix #4022, fix #3896, and fix #3413

BDS sends the following when switching into spectator mode:
https://paste.gg/p/anonymous/8f96ea38ebbb46b389fb08af5120e7d7

This PR makes sure the spectator layer is set additionally to the base layer, so the forced zoom isnt present (tested by rapidly switching between gamemodes, which was an easy way to trigger the bug)

Opening as a draft as i am hoping to resolve #3318 with this same PR; not sure what's missing for that though (yet)

Edit: Fixes #3318 by not sending updated flags while in spectator mode. E.g. sending the onFire or SPRINTING flag also cause the update - additionally, this makes sure spectator mode players dont see fire when in lava (same on BDS/java edition).

@onebeastchris onebeastchris marked this pull request as draft August 31, 2023 00:20
@onebeastchris onebeastchris marked this pull request as ready for review September 5, 2023 12:11
@onebeastchris onebeastchris added PR: Feature When a PR implements a new feature PR: Bugfix When a PR contains a bugfix labels Sep 5, 2023
@Konicai Konicai merged commit 3ec5915 into GeyserMC:master Sep 6, 2023
1 check passed
@onebeastchris onebeastchris deleted the spectator branch September 7, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Bugfix When a PR contains a bugfix PR: Feature When a PR implements a new feature
Projects
None yet
3 participants