Skip to content

Conversation

Foresteam
Copy link

@Foresteam Foresteam commented May 4, 2022

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
Copy link
Member

rom1504 commented May 14, 2022

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

@Foresteam
Copy link
Author

Foresteam commented May 16, 2022

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
Copy link
Member

rom1504 commented May 16, 2022

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
Copy link
Author

Foresteam commented May 16, 2022

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
Author

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

For the original package...
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.

2 participants