mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
Fixup plan expansion and RTP engine
This commit is contained in:
1 parent
8b809b6b5b
commit
547870e6c1
7 files changed
+142
-194
No files matched your search
@@ -44,12 +44,7 @@ public abstract class RandomTeleportEngine {
|
||||
*/
|
||||
protected final Position getOrigin(@NotNull World world) {
|
||||
return plugin.getLocalCachedSpawn()
|
||||
.flatMap(spawn -> {
|
||||
if (!spawn.worldUuid.equals(world.getUuid().toString())) {
|
||||
return Optional.empty();
|
||||
}
|
||||
return spawn.getPosition(plugin.getServerName());
|
||||
})
|
||||
.map(s -> s.getPosition(plugin.getServerName()))
|
||||
.orElse(new Position(0d, 128d, 0d, 0f, 0f,
|
||||
world, plugin.getServerName()));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user