Skip to content

Guard against serializing mismatching nbt chunk coordinate#2325

Closed
Spottedleaf wants to merge 8 commits into
PaperMC:ver/1.14from
Spottedleaf:write-fixes
Closed

Guard against serializing mismatching nbt chunk coordinate#2325
Spottedleaf wants to merge 8 commits into
PaperMC:ver/1.14from
Spottedleaf:write-fixes

Conversation

@Spottedleaf
Copy link
Copy Markdown
Member

Also print an exception if we fail to load data off disk

+ oversizedData = regionfile.getOversizedData(chunkCoordinate.x, chunkCoordinate.z);
+ } catch (Exception ex) {}
+ } catch (Exception ex) {
+ MinecraftServer.LOGGER.error("Failed to read OVERSIZED chunk data for " + chunkCoordinate + " in regionfile " + regionfile.file.toString() + ", ignoring OVERSIZED data", ex);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toString() in regionfile.file.toString() is unnecessary, no?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got a habit of explicitly toString()ing objects in concatenation

@Spottedleaf
Copy link
Copy Markdown
Member Author

updated to 1.14.4

@Spottedleaf
Copy link
Copy Markdown
Member Author

merged downstream

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.

3 participants