Add placeholder for player balance

This commit is contained in:
Bruno Rybársky 2024-11-01 23:44:06 +01:00
parent c22ffdc9a2
commit 33695e80ba
No known key found for this signature in database
GPG Key ID: 6C9206A821C70598
3 changed files with 11 additions and 11 deletions

@ -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
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

@ -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;

@ -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;
}