diff --git a/gradle.properties b/gradle.properties index 255f615..d6bbf55 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,20 +2,20 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://modmuss50.me/fabric.html -minecraft_version=1.21.1 -yarn_mappings=1.21.1+build.3 -loader_version=0.16.2 +minecraft_version=1.21.3 +yarn_mappings=1.21.3+build.2 +loader_version=0.16.9 # Mod Properties -mod_version=1.5.0 +mod_version=1.5.1 maven_group=systems.brn archives_base_name=servershop # Dependencies # check this on https://modmuss50.me/fabric.html -fabric_version=0.102.1+1.21.1 +fabric_version=0.107.0+1.21.3 # Dependencies -polymer_version=0.9.9+1.21 -server_translations_api_version=2.3.1+1.21-pre2 -servergui_version=1.6.0+1.21 -placeholder_api=2.4.1+1.21 \ No newline at end of file +polymer_version=0.10.1+1.21.3 +server_translations_api_version=2.4.0+1.21.2-rc1 +servergui_version=1.7.2+1.21.2 +placeholder_api=2.5.0+1.21.2 \ No newline at end of file diff --git a/src/main/java/systems/brn/servershop/lib/records/AuctionRecord.java b/src/main/java/systems/brn/servershop/lib/records/AuctionRecord.java index 3ee7dc1..6c08b89 100644 --- a/src/main/java/systems/brn/servershop/lib/records/AuctionRecord.java +++ b/src/main/java/systems/brn/servershop/lib/records/AuctionRecord.java @@ -21,7 +21,7 @@ public record AuctionRecord(int buyPrice, ItemStack stack, UUID sellerUUID) { nbt.putUuid("SellerUUID", sellerUUID); // Serialize the ItemStack to NBT and add it to the compound - NbtElement stackNbt = stack.encode(wrapperLookup); + NbtElement stackNbt = stack.toNbt(wrapperLookup); nbt.put("ItemStack", stackNbt); // Adds the ItemStack's NBT data to the main NBT compound return nbt; diff --git a/src/main/java/systems/brn/servershop/lib/records/ItemPriceRecord.java b/src/main/java/systems/brn/servershop/lib/records/ItemPriceRecord.java index 43a0598..912c1b4 100644 --- a/src/main/java/systems/brn/servershop/lib/records/ItemPriceRecord.java +++ b/src/main/java/systems/brn/servershop/lib/records/ItemPriceRecord.java @@ -17,7 +17,7 @@ public record ItemPriceRecord(int buyPrice, int sellPrice, ItemStack stack) { // Serialize the ItemStack to NBT and add it to the compound if (stack != null && !stack.isEmpty()) { - NbtElement stackNbt = stack.encode(wrapperLookup); + NbtElement stackNbt = stack.toNbt(wrapperLookup); nbt.put("ItemStack", stackNbt); // Adds the ItemStack's NBT data to the main NBT compound return nbt; }