mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Correct unsafe future joining
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user