Skip to content

Commit

Permalink
Bump geary snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Dec 5, 2023
1 parent 80b892b commit 9e16b88
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ fun Command.locate() {
if (radius <= 0) {
Bukkit.getWorlds().forEach { world ->
world.entities.filter { it.toGeary().deepInstanceOf(key.toEntity()) }.forEach { entity ->
val (x,y,z) = entity.location.toBlockLocation().toVector()
val (x, y, z) = entity.location.toBlockLocation().toVector()
player.info("<gold>Found <yellow>${key.key}</yellow> at <click:run_command:/teleport $x $y $z><aqua>$x,$y,$z</aqua> in ${entity.world.name}")
}
}
} else {
player.location.getNearbyEntities(radius.toDouble(), radius.toDouble(), radius.toDouble())
.filter { it.toGeary().deepInstanceOf(key.toEntity()) }.forEach { entity ->
val (x,y,z) = entity.location.toBlockLocation().toVector()
val (x, y, z) = entity.location.toBlockLocation().toVector()
player.info("<gold>Found <yellow>${key.key}</yellow> at <click:run_command:/teleport $x $y $z><aqua>$x,$y,$z")
}
}
Expand Down

0 comments on commit 9e16b88

Please sign in to comment.