diff options
| author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2023-02-06 15:36:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-06 15:36:26 +0100 |
| commit | 40887624fe1f1d843741ae1cbefb72ec7d4802f3 (patch) | |
| tree | e313f9eb420abf9e7c854bf5926ce6137f4abb83 /src/main/java/io/github/moulberry/notenoughupdates/util/ApiUtil.java | |
| parent | 5b702e9d1551b5cd2ef09fda16f98e676d38f381 (diff) | |
| download | notenoughupdates-40887624fe1f1d843741ae1cbefb72ec7d4802f3.tar.gz notenoughupdates-40887624fe1f1d843741ae1cbefb72ec7d4802f3.tar.bz2 notenoughupdates-40887624fe1f1d843741ae1cbefb72ec7d4802f3.zip | |
Fixed Lags: Magical power in SkyBlock Menu (#587)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/ApiUtil.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/ApiUtil.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/ApiUtil.java b/src/main/java/io/github/moulberry/notenoughupdates/util/ApiUtil.java index c86ac84f..0c590bab 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/ApiUtil.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/ApiUtil.java @@ -89,11 +89,12 @@ public class ApiUtil { public void updateProfileData(String playerUuid) { if (!updateTasks.getOrDefault(playerUuid, CompletableFuture.completedFuture(null)).isDone()) return; + String uuid = Minecraft.getMinecraft().thePlayer.getUniqueID().toString().replace("-", ""); updateTasks.put(playerUuid, newHypixelApiRequest("skyblock/profiles") - .queryArgument("uuid", Minecraft.getMinecraft().thePlayer.getUniqueID().toString().replace("-", "")) + .queryArgument("uuid", uuid) .requestJson() .handle((jsonObject, throwable) -> { - new ProfileDataLoadedEvent(jsonObject).post(); + new ProfileDataLoadedEvent(uuid, jsonObject).post(); return null; })); |
