Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,7 @@ public RandomLocation getEyeLocation() {
@Override
public CompletableFuture<TeleportResponse> teleportAsync(RandomLocation location) {
//Teleport the player async if possible
return PaperLib.teleportAsync(player, WorldUtil.toLocation(location)).thenApply(success -> {
if (success) {
return new BasicTeleportResponse(TeleportType.SUCCESS);
} else {
return new BasicTeleportResponse(TeleportType.FAIL);
}
});
return PaperLib.teleportAsync(player, WorldUtil.toLocation(location)).thenApply(success -> success ? new BasicTeleportResponse(TeleportType.SUCCESS) : new BasicTeleportResponse(TeleportType.FAIL));
}

@Override
Expand Down