Skip to content

Handle missing cache version file for new worlds #305

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

Merged
merged 1 commit into from
Jan 9, 2022
Merged

Handle missing cache version file for new worlds #305

merged 1 commit into from
Jan 9, 2022

Conversation

ShirleyNekoDev
Copy link

When a world is loaded for the first time, the belonging cache directory does not exist yet. Therefore when trying to read the cache version file, a FileNotFoundException is thrown and dumped into the log/stdout.

This PR adds a check for the existence of such a version file, before reading it. The resulting behavior stays the same for both cases (existence and non-existance), only the error handing is cleaner (IMHO).

@Querz Querz merged commit c93789b into Querz:master Jan 9, 2022
@ShirleyNekoDev ShirleyNekoDev deleted the handle-missing-cache branch January 9, 2022 20:31
@ShirleyNekoDev ShirleyNekoDev restored the handle-missing-cache branch January 9, 2022 20:32
@ShirleyNekoDev ShirleyNekoDev deleted the handle-missing-cache branch July 1, 2022 09:47
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.

2 participants