Skip to content

Changes on line 257 of main.js to allow modern Minecraft versions to use this tool.#94

Open
AnySpy wants to merge 2 commits intodjfun:masterfrom
AnySpy:master
Open

Changes on line 257 of main.js to allow modern Minecraft versions to use this tool.#94
AnySpy wants to merge 2 commits intodjfun:masterfrom
AnySpy:master

Conversation

@AnySpy
Copy link
Copy Markdown

@AnySpy AnySpy commented Aug 22, 2025

As detailed in issue #91 by LosVocelos, modern Minecraft versions changed the dimension tag to be a string of "minecraft:[DIM]". Using the old version of a byte is no longer supported and results in the map reading "Unknown Map".

This changed line 257 to create an object that defaults to 'minecraft:overworld' if none is provided in Cookies.get('dimension').

As far as compatibility goes, this may break versions prior to 1.16, according to the Minecraft Wiki page on map NBT.

dimension: For <1.16 (byte): 0 = The Overworld, -1 = The Nether, 1 = The End, any other value = a static image with no player pin. In >=1.16 this is the resource location of a dimension instead.

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