aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/skyblock/dungeon
diff options
context:
space:
mode:
authorAaron <51387595+AzureAaron@users.noreply.github.com>2024-04-23 14:06:15 -0400
committerAaron <51387595+AzureAaron@users.noreply.github.com>2024-04-26 16:23:21 -0400
commit243edeabe16d2739b56e78d081d1e1570bf85fef (patch)
tree1ef82b437d38ff6b1f610a91947da2ecc56852b5 /src/main/java/de/hysky/skyblocker/skyblock/dungeon
parentfad294b43f7386afc08915ea2f2accf0523b588a (diff)
downloadSkyblocker-243edeabe16d2739b56e78d081d1e1570bf85fef.tar.gz
Skyblocker-243edeabe16d2739b56e78d081d1e1570bf85fef.tar.bz2
Skyblocker-243edeabe16d2739b56e78d081d1e1570bf85fef.zip
Fix Fancy PF crash
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/dungeon')
-rw-r--r--src/main/java/de/hysky/skyblocker/skyblock/dungeon/partyfinder/PartyEntry.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dungeon/partyfinder/PartyEntry.java b/src/main/java/de/hysky/skyblocker/skyblock/dungeon/partyfinder/PartyEntry.java
index dd550b4f..f86d3057 100644
--- a/src/main/java/de/hysky/skyblocker/skyblock/dungeon/partyfinder/PartyEntry.java
+++ b/src/main/java/de/hysky/skyblocker/skyblock/dungeon/partyfinder/PartyEntry.java
@@ -146,7 +146,7 @@ public class PartyEntry extends ElementListWidget.Entry<PartyEntry> {
if (matcher.find()) classLevel = Integer.parseInt(matcher.group(1));
Player player = new Player(playerName, className, classLevel);
- SkullBlockEntityAccessor.invokeFetchProfileByName(playerNameTrim, Utils.getApiServices()).thenAccept(
+ SkullBlockEntityAccessor.invokeFetchProfileByName(playerNameTrim).thenAccept(
gameProfile -> gameProfile.ifPresent(profile -> player.skinTexture = (client.getSkinProvider().getSkinTextures(profile).texture())));
if (playerNameTrim.equals(partyHost)) {
@@ -171,7 +171,7 @@ public class PartyEntry extends ElementListWidget.Entry<PartyEntry> {
partyLeader = new Player(Text.literal("Error"), "Error", -1);
}
- SkullBlockEntityAccessor.invokeFetchProfileByName(partyLeader.name.getString(), Utils.getApiServices()).thenAccept(
+ SkullBlockEntityAccessor.invokeFetchProfileByName(partyLeader.name.getString()).thenAccept(
gameProfile -> gameProfile.ifPresent(profile -> partyLeaderSkin = client.getSkinProvider().getSkinTextures(profile).texture()));
}