diff --git a/src/main/java/net/wurstclient/commands/GiveCmd.java b/src/main/java/net/wurstclient/commands/GiveCmd.java index 296a09adf5..a0b1534c53 100644 --- a/src/main/java/net/wurstclient/commands/GiveCmd.java +++ b/src/main/java/net/wurstclient/commands/GiveCmd.java @@ -74,7 +74,7 @@ public void call(String[] args) throws CmdException if(nbt != null) try { - NbtCompound tag = StringNbtReader.parse(nbt); + NbtCompound tag = StringNbtReader.method_67315(nbt); NbtComponent.set(DataComponentTypes.CUSTOM_DATA, stack, tag); }catch(CommandSyntaxException e) diff --git a/src/main/java/net/wurstclient/commands/ModifyCmd.java b/src/main/java/net/wurstclient/commands/ModifyCmd.java index 455de86a9f..a5538b8a7d 100644 --- a/src/main/java/net/wurstclient/commands/ModifyCmd.java +++ b/src/main/java/net/wurstclient/commands/ModifyCmd.java @@ -89,7 +89,7 @@ private void add(ItemStack stack, String[] args) throws CmdError try { - NbtCompound parsedNbt = StringNbtReader.parse(nbtString); + NbtCompound parsedNbt = StringNbtReader.method_67315(nbtString); itemNbt.copyFrom(parsedNbt); stack.set(DataComponentTypes.CUSTOM_DATA, NbtComponent.of(itemNbt)); @@ -107,7 +107,7 @@ private void set(ItemStack stack, String[] args) throws CmdError try { - NbtCompound tag = StringNbtReader.parse(nbt); + NbtCompound tag = StringNbtReader.method_67315(nbt); stack.set(DataComponentTypes.CUSTOM_DATA, NbtComponent.of(tag)); }catch(CommandSyntaxException e) diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index dea5c943d1..3cf930d865 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -27,8 +27,8 @@ "accessWidener": "wurst.accesswidener", "depends": { "fabricloader": ">=0.16.10", - "fabric-api": ">=0.114.4", - "minecraft": "~1.21.5-alpha.25.3.a", + "fabric-api": ">=0.115.1", + "minecraft": "~1.21.5-alpha.25.4.a", "java": ">=21" }, "suggests": {