Skip to content

leveldat/data.go: Add 1.26 editor level.dat fields#1277

Merged
TwistedAsylumMC merged 3 commits into
df-mc:masterfrom
smell-of-curry:leveldat-editor-tags
Jun 24, 2026
Merged

leveldat/data.go: Add 1.26 editor level.dat fields#1277
TwistedAsylumMC merged 3 commits into
df-mc:masterfrom
smell-of-curry:leveldat-editor-tags

Conversation

@smell-of-curry

Copy link
Copy Markdown
Contributor

Summary

  • Add three Bedrock 1.26.x editor level.dat fields so worlds touched by the editor can be opened without NBT decode failures.
  • Add a round-trip unit test for the new tags.

Fixes worlds failing to load with:
unexpected named tag '.allowAnonymousBlockDropsInEditorWorlds' ... not present in struct to be decoded into

Test plan

  • go test ./server/world/mcdb/leveldat/ -run TestDataUnmarshalEditorWorldTags
  • Open a world saved by Bedrock 1.26 editor in Dragonfly without stripping tags

@didntpot

Copy link
Copy Markdown
Collaborator

Run go fmt @smell-of-curry

smell-of-curry and others added 3 commits June 23, 2026 18:29
Worlds opened in Bedrock 1.26.x editor can write allowAnonymousBlockDropsInEditorWorlds,
playerwaypoints, and serverEditorConnectionPolicy into level.dat. Dragonfly's strict NBT
decoder rejected these unknown tags and failed to open the world.
Co-authored-by: Cursor <cursoragent@cursor.com>
@TwistedAsylumMC TwistedAsylumMC merged commit 8be43f3 into df-mc:master Jun 24, 2026
3 checks passed
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