Skip to content

Commit

Permalink
fix rate limiting issues (#4042)
Browse files Browse the repository at this point in the history
  • Loading branch information
J3fftw1 authored and WalshyDev committed Dec 6, 2023
1 parent 64f7616 commit aceae31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -355,7 +355,7 @@
<dependency>
<groupId>com.github.baked-libs.dough</groupId>
<artifactId>dough-api</artifactId>
<version>99381b2</version>
<version>4b28bd408e</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
Expand Up @@ -133,7 +133,7 @@ private int requestTexture(@Nonnull Contributor contributor, @Nonnull Map<String
Optional<UUID> uuid = contributor.getUniqueId();

if (!uuid.isPresent()) {
CompletableFuture<UUID> future = UUIDLookup.forUsername(Slimefun.instance(), contributor.getMinecraftName());
CompletableFuture<UUID> future = UUIDLookup.getUuidFromUsername(Slimefun.instance(), contributor.getMinecraftName());

// Fixes #3241 - Do not wait for more than 30 seconds
uuid = Optional.ofNullable(future.get(30, TimeUnit.SECONDS));
Expand Down

0 comments on commit aceae31

Please sign in to comment.