Skip to content

Skip saving a {null:1b} to disk when serializing a null field - #5286

Open
screret wants to merge 3 commits into
GregTechCEu:1.21from
screret:sc/dont-bother-saving-nulls-to-disk
Open

Skip saving a {null:1b} to disk when serializing a null field#5286
screret wants to merge 3 commits into
GregTechCEu:1.21from
screret:sc/dont-bother-saving-nulls-to-disk

Conversation

@screret

@screret screret commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

What

save a small amount of users' disk space by not serializing the null marker NBT tags sync uses to signal clients that the field is null (instead of unchanged)

Implementation Details

Check if we're sending/receiving sync data and only serialize the null field markers if so

AI Usage

  • No AI driven tools were used for this pull request.

Outcome

smaller region data files

How Was This Tested

inspected an existing machine with /data get block x y z (notice many {null:1b} compound tags)
Switched to this PR's branch
did the same, no more of those

@screret
screret requested a review from a team as a code owner August 13, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant