Skip to content

Commit

Permalink
Update mineskin java client to 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSchlueter committed Nov 23, 2024
1 parent c786178 commit 8f49649
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ allprojects {
maven(url = "https://repo.papermc.io/repository/maven-public/")
maven(url = "https://repo.fancyplugins.de/releases")
maven(url = "https://repo.lushplugins.org/releases")
maven(url = "https://repo.inventivetalent.org/repository/public/")
maven(url = "https://repo.inventivetalent.org/repository/maven-snapshots/")
}
}

Expand All @@ -68,7 +68,7 @@ dependencies {
implementation("org.incendo:cloud-paper:2.0.0-SNAPSHOT")
implementation("org.incendo:cloud-annotations:2.1.0-SNAPSHOT")
annotationProcessor("org.incendo:cloud-annotations:2.1.0-SNAPSHOT")
implementation("org.mineskin:java-client-jsoup:3.0.0-SNAPSHOT")
implementation("org.mineskin:java-client-jsoup:3.0.1-SNAPSHOT")

compileOnly("com.intellectualsites.plotsquared:plotsquared-core:7.4.0")
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/oliver/fancynpcs/skins/SkinManagerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
import org.mineskin.JsoupRequestHandler;
import org.mineskin.MineSkinClient;
import org.mineskin.data.CodeAndMessage;
import org.mineskin.data.JobReference;
import org.mineskin.data.SkinInfo;
import org.mineskin.data.Variant;
import org.mineskin.exception.MineSkinRequestException;
import org.mineskin.request.GenerateRequest;
import org.mineskin.response.JobResponse;
import org.mineskin.response.MineSkinResponse;
import org.mineskin.response.QueueResponse;

Expand Down Expand Up @@ -219,7 +219,7 @@ private SkinInfo executeRequest(GenerateRequest req) {
CompletableFuture<QueueResponse> queueResp = client.queue().submit(req);

// wait for job completion
CompletableFuture<JobResponse> jobResp = queueResp.thenCompose(
CompletableFuture<JobReference> jobResp = queueResp.thenCompose(
queueResponse -> queueResponse.getJob().waitForCompletion(client)
);

Expand Down

0 comments on commit 8f49649

Please sign in to comment.