mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Refactor and simplify RandomTeleportEngine API and logic
This commit is contained in:
1 parent
c8a0f00290
commit
6b55327e52
6 files changed
+109
-178
No files matched your search
@@ -389,7 +389,7 @@ public abstract class BaseHuskHomesAPI {
|
||||
final boolean timedTeleport,
|
||||
@NotNull String... rtpArgs) {
|
||||
return CompletableFuture.supplyAsync(() -> plugin.getRandomTeleportEngine()
|
||||
.getRandomPosition(user, rtpArgs)
|
||||
.getRandomPosition(user.getPosition().world, rtpArgs)
|
||||
.thenApply(position -> {
|
||||
if (position.isPresent()) {
|
||||
final TeleportBuilder builder = Teleport.builder(plugin, user)
|
||||
|
||||
Reference in new issue
Block a user