mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Fix safe ground locator not returning after completing future when world is invalid
This commit is contained in:
1 parent
430b0b92dd
commit
4005732877
1 file changed
+1
@@ -415,6 +415,7 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes {
|
||||
assert bukkitLocation.getWorld() != null;
|
||||
if (!bukkitLocation.getWorld().getWorldBorder().isInside(bukkitLocation)) {
|
||||
future.complete(Optional.empty());
|
||||
return;
|
||||
}
|
||||
|
||||
// Find a safe position and return
|
||||
|
||||
Reference in new issue
Block a user