mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
Remove server auto-fetching due to instability
This commit is contained in:
1 parent
d928ee6ade
commit
eb4652d6ff
17 files changed
+43
-161
No files matched your search
@@ -94,6 +94,6 @@ public class NormalDistributionEngine extends RandomTeleportEngine {
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
return location.map(resolved -> new Position(resolved, plugin.getPluginServer()));
|
||||
return location.map(resolved -> new Position(resolved, plugin.getServerName()));
|
||||
}
|
||||
}
|
||||
@@ -50,10 +50,10 @@ public abstract class RandomTeleportEngine {
|
||||
if (!spawn.worldUuid.equals(world.uuid.toString())) {
|
||||
return Optional.empty();
|
||||
}
|
||||
return spawn.getPosition(plugin.getPluginServer());
|
||||
return spawn.getPosition(plugin.getServerName());
|
||||
})
|
||||
.orElse(new Position(0d, 128d, 0d, 0f, 0f,
|
||||
world, plugin.getPluginServer()));
|
||||
world, plugin.getServerName()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user