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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user