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 data desync issues #266

Closed
wants to merge 1 commit into from
Closed

Fix data desync issues #266

wants to merge 1 commit into from

Conversation

Cyramek
Copy link
Contributor

@Cyramek Cyramek commented Apr 23, 2023

For some reason previous code causes data to not be saved.

Also there is a issue when player disconnect from the server and his data will not be saved, due to unloading his profile in quit event, so his changed data will disappear, and then ProfileSaver will try to save new data, but his profile is null, so it will loaded from database without any changes.

After this commit, if player disconnects and his profile had any changes it will not be saved, so you need to make sure to save player data when player leaves.

Fixes: #244 #208 and maybe #118

@WillFP
Copy link
Member

WillFP commented Apr 27, 2023

Thanks! I've merged this into develop, in the future if you could open to that instead of master so it shows as merged here

@WillFP WillFP closed this Apr 29, 2023
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.

Skills Resetting Upon Relog/Server Reboots
2 participants