From 67cc7c22ac5f6873eb4549bc69db9f014c09c07f Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 10 Jul 2024 19:58:51 +0200 Subject: Add pet upgrade cost recipes --- src/main/kotlin/moe/nea/firmament/util/item/SkullItemData.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main/kotlin/moe/nea/firmament/util') diff --git a/src/main/kotlin/moe/nea/firmament/util/item/SkullItemData.kt b/src/main/kotlin/moe/nea/firmament/util/item/SkullItemData.kt index 96bf49a..551fa1f 100644 --- a/src/main/kotlin/moe/nea/firmament/util/item/SkullItemData.kt +++ b/src/main/kotlin/moe/nea/firmament/util/item/SkullItemData.kt @@ -12,7 +12,7 @@ package moe.nea.firmament.util.item import com.mojang.authlib.GameProfile import com.mojang.authlib.minecraft.MinecraftProfileTexture import com.mojang.authlib.properties.Property -import java.util.* +import java.util.UUID import kotlinx.datetime.Clock import kotlinx.datetime.Instant import kotlinx.serialization.Serializable @@ -63,10 +63,12 @@ fun ItemStack.setEncodedSkullOwner(uuid: UUID, encodedData: String) { val zeroUUID = UUID.fromString("d3cb85e2-3075-48a1-b213-a9bfb62360c1") fun ItemStack.setSkullOwner(uuid: UUID, url: String) { assert(this.item == Items.PLAYER_HEAD) - val gameProfile = GameProfile(uuid, "LameGuy123") + val gameProfile = GameProfile(uuid, "nea89") gameProfile.setTextures( MinecraftTexturesPayloadKt( - mapOf(MinecraftProfileTexture.Type.SKIN to MinecraftProfileTextureKt(url)) + textures = mapOf(MinecraftProfileTexture.Type.SKIN to MinecraftProfileTextureKt(url)), + profileId = uuid, + profileName = "nea89", ) ) this.set(DataComponentTypes.PROFILE, ProfileComponent(gameProfile)) -- cgit