Skip to content

Commit 90e7666

Browse files
committed
fix .nbt
1 parent a8649eb commit 90e7666

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/meteordevelopment/meteorclient/utils/misc/ComponentMapReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private CompletableFuture<Suggestions> suggestComponentType(SuggestionsBuilder b
154154

155155
private <T> void readComponentValue(StringReader reader, ComponentMap.Builder builder, ComponentType<T> type) throws CommandSyntaxException {
156156
int i = reader.getCursor();
157-
NbtElement nbtElement = SNBT_READER.read(reader);
157+
NbtElement nbtElement = SNBT_READER.readAsArgument(reader);
158158
DataResult<T> dataResult = type.getCodecOrThrow().parse(this.nbtOps, nbtElement);
159159
builder.add(type, dataResult.getOrThrow(error -> {
160160
reader.setCursor(i);

0 commit comments

Comments
 (0)