Skip to content

Commit

Permalink
Fix contributor head being pullable (#4072)
Browse files Browse the repository at this point in the history
  • Loading branch information
WalshyDev committed Dec 27, 2023
1 parent a56aacd commit 6b03850
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
<dependency>
<groupId>com.github.baked-libs.dough</groupId>
<artifactId>dough-api</artifactId>
<version>4b28bd408e</version>
<version>da42c2f268</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -513,6 +513,12 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>1.5.25</version>
<scope>provided</scope>
</dependency>
<!-- TODO: Remove this dependency -->
<dependency>
<groupId>commons-lang</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private int requestTexture(@Nonnull Contributor contributor, @Nonnull Map<String

if (uuid.isPresent()) {
CompletableFuture<PlayerSkin> future = PlayerSkin.fromPlayerUUID(Slimefun.instance(), uuid.get());
Optional<String> skin = Optional.of(future.get().toString());
Optional<String> skin = Optional.of(future.get().getProfile().getBase64Texture());
skins.put(contributor.getMinecraftName(), skin.orElse(""));
return skin.orElse(null);
} else {
Expand Down

0 comments on commit 6b03850

Please sign in to comment.