Skip to content

Commit

Permalink
fix rate limiting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
J3fftw1 committed Dec 6, 2023
1 parent b646e15 commit cfdd50f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 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>99381b2</version>
<version>4b28bd408e</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
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 cfdd50f

Please sign in to comment.