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

Don't default to ProfileType SURVIVAL for spectator gamemode change. #459

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

benwoo1110
Copy link
Member

@benwoo1110 benwoo1110 commented Jul 15, 2021

When trying to solve #458, just happened to notice this.

This improves performance slightly as it doesnt rewrite SURVIVAL to SURVIVAL when changing from survival to spectator. There is no need to read or write anything to gamemode spectator.

@nicegamer7
Copy link
Member

I assume you tested this right?

And does it work fine if you from Creative to Spectator to Survival?

@benwoo1110
Copy link
Member Author

It works fine from my testing yea.

@benwoo1110
Copy link
Member Author

actually wait, let me test again just to be sure

This improves performance slightly as it doesnt rewrite SURVIVAL to SURVIVAL when changing from survival to spectator. There is no need to read or write anything to gamemode spectator.
@benwoo1110 benwoo1110 force-pushed the spectator-gamemode-efficiency branch from bdf5dcf to c5fc189 Compare July 15, 2021 16:31
@benwoo1110
Copy link
Member Author

Yea ok it works, missed out doing the same thing for ReadProfile jn.

@nicegamer7
Copy link
Member

Okay, seems good to me, but just to be sure... @dumptruckman please take a look lol.

@benwoo1110 benwoo1110 added PR: Better Coding Improvements in code, but not introducing new features. State: Needs Review By Dev Pull requests requires the approve of lead dev. labels Jul 20, 2021
@benwoo1110 benwoo1110 requested a review from dumptruckman July 20, 2021 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Better Coding Improvements in code, but not introducing new features. State: Needs Review By Dev Pull requests requires the approve of lead dev.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants