diff options
author | efefury <69400149+efefury@users.noreply.github.com> | 2023-01-16 20:58:17 +0100 |
---|---|---|
committer | efefury <69400149+efefury@users.noreply.github.com> | 2023-01-16 20:58:17 +0100 |
commit | 82d3c94ddd024d38bd594787c2779a3cc1935462 (patch) | |
tree | eb49301227d7296d4e95a2c304c4a683dd128ebb /src/main/kotlin/io | |
parent | 2f0c6f5aed1fc2e15555b80bbd2e32df279d3640 (diff) | |
download | NotEnoughUpdates-82d3c94ddd024d38bd594787c2779a3cc1935462.tar.gz NotEnoughUpdates-82d3c94ddd024d38bd594787c2779a3cc1935462.tar.bz2 NotEnoughUpdates-82d3c94ddd024d38bd594787c2779a3cc1935462.zip |
not finished
hgdt<
Diffstat (limited to 'src/main/kotlin/io')
-rw-r--r-- | src/main/kotlin/io/github/moulberry/notenoughupdates/util/hypixelapi/Collection.kt | 6 |
1 files changed, 3 insertions, 3 deletions
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<ProfileCollectionInfo?> { + fun getCollectionData(profileData: JsonObject, mainPlayer: String): CompletableFuture<ProfileCollectionInfo?> { return hypixelCollectionInfo.thenApply { getCollectionData(profileData, mainPlayer, it) } |