Skip to content

Detect the players subdirectory of newer Minecraft worlds - #274

Open
andrzejdus wants to merge 2 commits into
pdinklag:masterfrom
andrzejdus:players-subdir
Open

andrzejdus wants to merge 2 commits into
pdinklag:masterfrom
andrzejdus:players-subdir

Conversation

@andrzejdus

Copy link
Copy Markdown

Newer Minecraft versions (26.2, data version 4903) keep the per-player stats and advancements directories under <world>/players/ instead of directly in <world>/. With that layout the updater finds no players.

FileSystemDataSource now resolves both directories from <world>/players/ when it exists, falling back to <world>/ otherwise. Both the CLI and the plugin go through this class.

Tested against a 26.2 vanilla world.

🤖 Generated with Claude Code

Newer Minecraft versions (26.2, data version 4903) keep the per-player
`stats` and `advancements` directories under `<world>/players/` instead
of directly in `<world>/`, so the updater found no players at all.

`FileSystemDataSource` now resolves both directories from
`<world>/players/` when that exists and falls back to `<world>/`
otherwise. Both the CLI and the plugin go through this class.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.

1 participant