-
Notifications
You must be signed in to change notification settings - Fork 85
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
Un-invert Options.disableDespawning
data byte
#1463
Conversation
For some reason the value of `Options.disableDespawning` was historically inverted during de/serialization. This PR fixes that. It's based in part on new `Version` field that Kian put in PR #1211.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A risky endeavour, but alright, good intention
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok 👍
I'm not sure why I didn't notice it but.... if we are starting "new game", there won't be Configuration data so |
For some reason the value of
Options.disableDespawning
was historically inverted during de/serialization.This PR fixes that by making the serialized value conistent with how all other options work (not inverted), whilst handling legacy value (inverted) if necessary.
It's based in part on new
Version
field that @kianzarrin put in PR #1211 (note: if merging prior to that PR, Kian would need to change version in his PR to2
).Also fixes some trivial analyzer warnings I noticed.