9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-04 15:41:38 +00:00

改进 SNBTReader, 支持无引号包裹且带空格的字符串.

This commit is contained in:
Catnies
2025-06-25 01:32:59 +08:00
parent 1712916370
commit 4979d9473b

View File

@@ -172,7 +172,7 @@ public final class SNBTReader extends DefaultStringReader {
int tokenStart = cursor;
while (cursor < length) {
char c = peek();
if (c <= ' ' || c == ',' || c == ']' || c == '}') break;
if (c == ',' || c == ']' || c == '}') break;
cursor++;
}
int tokenLength = cursor - tokenStart;