Skip to content

Types and optional quotes#38

Open
Foresteam wants to merge 10 commits into
PrismarineJS:masterfrom
Foresteam:master
Open

Types and optional quotes#38
Foresteam wants to merge 10 commits into
PrismarineJS:masterfrom
Foresteam:master

Conversation

@Foresteam

@Foresteam Foresteam commented May 4, 2022

Copy link
Copy Markdown

Minecraft may not read SNBT tags with no quotes (string values and names). It seem to always put them by default, also.

Not the best implementation possible, but i didn't want to modify the module structure
@rom1504

rom1504 commented May 14, 2022

Copy link
Copy Markdown
Member

can you add a test showing how things work better now ?

@Foresteam

Foresteam commented May 16, 2022

Copy link
Copy Markdown
Author

Minecraft simply rejects the file without quotes and loads a backup from somewhere. Or you mean the quotes themselves, like {a:qwe} => {"a":"qwe"} ?

@rom1504

rom1504 commented May 16, 2022

Copy link
Copy Markdown
Member

Yes adding a test for both would be best

This package code is complex, so it's important all new features are tested so the next PR doesn't break it

@Foresteam Foresteam force-pushed the master branch 2 times, most recently from 13eaff2 to 0a7b4c2 Compare May 16, 2022 21:12
@Foresteam

Foresteam commented May 16, 2022

Copy link
Copy Markdown
Author

Correction: Minecraft 1.18.2 doesn't reject the file, it skips the "invalid" SNBT data.

@Foresteam Foresteam force-pushed the master branch 2 times, most recently from e0bf799 to e32aada Compare May 16, 2022 22:02
@Foresteam

Copy link
Copy Markdown
Author

I think it's ready to be merged... For quite a long time

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