From 82d3c94ddd024d38bd594787c2779a3cc1935462 Mon Sep 17 00:00:00 2001 From: efefury <69400149+efefury@users.noreply.github.com> Date: Mon, 16 Jan 2023 20:58:17 +0100 Subject: not finished hgdt< --- .../github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/kotlin/io') diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt index 51361bd3..2f2419eb 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt @@ -91,10 +91,10 @@ data class ProfileCollectionInfo( fun getCollectionData( profileData: JsonObject, - mainPlayer: UUID, + mainPlayer: String, collectionData: CollectionMetadata ): ProfileCollectionInfo? { - val mainPlayerUUID = mainPlayer.toString().replace("-", "") + val mainPlayerUUID = mainPlayer.replace("-", "") val members = profileData["members"] as? JsonObject ?: return null val mainPlayerData = (members[mainPlayerUUID] as? JsonObject ?: return null) @@ -136,7 +136,7 @@ data class ProfileCollectionInfo( * should contain profile_id, members, cute_name, etc.) */ @JvmStatic - fun getCollectionData(profileData: JsonObject, mainPlayer: UUID): CompletableFuture { + fun getCollectionData(profileData: JsonObject, mainPlayer: String): CompletableFuture { return hypixelCollectionInfo.thenApply { getCollectionData(profileData, mainPlayer, it) } -- cgit