aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/io
diff options
context:
space:
mode:
authorefefury <69400149+efefury@users.noreply.github.com>2023-01-16 20:58:17 +0100
committerefefury <69400149+efefury@users.noreply.github.com>2023-01-16 20:58:17 +0100
commit82d3c94ddd024d38bd594787c2779a3cc1935462 (patch)
treeeb49301227d7296d4e95a2c304c4a683dd128ebb /src/main/kotlin/io
parent2f0c6f5aed1fc2e15555b80bbd2e32df279d3640 (diff)
downloadNotEnoughUpdates-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.kt6
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)
}