Correct unsafe future joining

This commit is contained in:
William278 committed 2022-09-07 22:36:06 +03:00
1 parent adac00ea47
commit 950a51c140
14 files changed
+42 -42

No files matched your search

@@ -203,7 +203,7 @@ public abstract class BaseHuskHomesAPI {
* @return A {@link CompletableFuture} that will complete with the {@link Position} of the spawn point
*/
public final CompletableFuture<Optional<? extends Position>> getSpawn() {
return CompletableFuture.supplyAsync(plugin::getSpawn);
return plugin.getSpawn();
}
/**