Amulet-Team / Amulet-Map-Editor

A new Minecraft world editor and converter that supports all versions since Java 1.12 and Bedrock 1.7.
https://www.amuletmc.com/
1.79k stars 123 forks source link

[Bug Report] Error parsing NBT #1038

Open gentlegiantJGC opened 7 months ago

gentlegiantJGC commented 7 months ago

Bug Report

A user has submitted a region file containing a chunk that Amulet fails to load.

Current Behaviour:

https://discord.com/channels/324647192583340043/1228490915551641670

Expected behavior:

No error

Attachments

chunk.zip

gentlegiantJGC commented 7 months ago

I have modified the NBT library to print out the strings as it parses them to find the string that errors. It appears to be text on a sign at coordinate 13, 8, 0. The hex representation of the text is 7B 22 74 65 78 74 22 3A 22 ED A0 8C ED A0 8D ED A0 8E ED A0 8F 22 7D Which in normal text is {"text":"<corrupted_text_here>"}

gentlegiantJGC commented 7 months ago

I have spliced the region file into a minecraft world to view it and the game is able to load and render it but the signs are just random text. I think the only want to solve this is to escape invalid bytes like we do with Bedrock.

2024-04-15_10 44 57 2024-04-15_10 45 08