diff --git a/src/main/java/com/fandtpa/Main.java b/src/main/java/com/fandtpa/Main.java index 7237538..bd854b4 100644 --- a/src/main/java/com/fandtpa/Main.java +++ b/src/main/java/com/fandtpa/Main.java @@ -386,5 +386,4 @@ public void executePortalCommand(Player player, PortalData portalData) { public Map getPortalMap() { return portalMap; } - } \ No newline at end of file diff --git a/src/main/java/com/fandtpa/commands/command/TprandomCommand.java b/src/main/java/com/fandtpa/commands/command/TprandomCommand.java index 5da8822..4460746 100644 --- a/src/main/java/com/fandtpa/commands/command/TprandomCommand.java +++ b/src/main/java/com/fandtpa/commands/command/TprandomCommand.java @@ -72,7 +72,7 @@ public void run() { private Location getRandomSafeLocation(Player player) { Random random = new Random(); World world = player.getWorld(); - int maxAttempts = 10; + int maxAttempts = 5; for (int attempts = 0; attempts < maxAttempts; attempts++) { double x = player.getLocation().getX() + random.nextInt(20001) - 10000;