From 31deef2a62caca663027dc089add04f11ccbbb99 Mon Sep 17 00:00:00 2001 From: Andre601 <11576465+Andre601@users.noreply.github.com> Date: Wed, 1 Dec 2021 21:30:41 +0100 Subject: [PATCH] Use completedFuture instead --- .../placeholderapi/expansion/manager/LocalExpansionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java b/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java index 29db58b..abded95 100644 --- a/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java +++ b/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java @@ -372,7 +372,7 @@ public final class LocalExpansionManager implements Listener { public CompletableFuture<@NotNull List<@Nullable Class>> findExpansionsOnDisk() { File[] files = folder.listFiles((dir, name) -> name.endsWith(".jar")); if(files == null){ - return CompletableFuture.supplyAsync(Collections::emptyList); + return CompletableFuture.completedFuture(Collections.emptyList()); } return Arrays.stream(files)