From 04040cae8719c2ec95622b2b59919b3b970d66f3 Mon Sep 17 00:00:00 2001 From: OEOTYAN Date: Sun, 23 Jun 2024 12:51:47 +0800 Subject: [PATCH] fix: fix empty numarray parse #1552 --- src/mc/nbt/detail/SnbtParseImpl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mc/nbt/detail/SnbtParseImpl.cpp b/src/mc/nbt/detail/SnbtParseImpl.cpp index a50697b9db..a1ac8631d7 100644 --- a/src/mc/nbt/detail/SnbtParseImpl.cpp +++ b/src/mc/nbt/detail/SnbtParseImpl.cpp @@ -426,6 +426,7 @@ Expected parseNumArray(std::string_view& s, F&& f) { return forwardError(skipped.error()); } if (s.front() == ']') { + s.remove_prefix(1); return R{}; } T res;