diff --git a/src/main/java/com/alttd/hunger_games/services/PlayerTeleporterService.java b/src/main/java/com/alttd/hunger_games/services/PlayerTeleporterService.java index ddb5d3d..a5a79c1 100644 --- a/src/main/java/com/alttd/hunger_games/services/PlayerTeleporterService.java +++ b/src/main/java/com/alttd/hunger_games/services/PlayerTeleporterService.java @@ -66,7 +66,10 @@ public class PlayerTeleporterService implements RoundListener { double angleRadians = Math.toRadians(angleDegrees); double x = center.getX() + radius * Math.cos(angleRadians); double z = center.getZ() + radius * Math.sin(angleRadians); + Location location = new Location(center.getWorld(), x, center.getY(), z); + location.setDirection(center.toVector().subtract(location.toVector())); + usedLocations.computeIfAbsent(destination, k -> new HashSet<>()).add(location); return location; }