-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle corrupt light data gracefully
First, if the light data is not marked as correct, we should not be parsing it in the first place. This will eliminate errors from parsing possibly different versioned light data. Secondly, if parsing the light data throws an exception (from the SWMRNibbleArray constructor), then we can simply mark the returned chunk as having incorrect light data - rather than propagating the exception and causing the chunk to be re-generated.
- Loading branch information
1 parent
0cbc9aa
commit 54fc964
Showing
1 changed file
with
38 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters