diff --git a/common/src/main/java/com/gmail/picono435/randomtp/api/RandomTPAPI.java b/common/src/main/java/com/gmail/picono435/randomtp/api/RandomTPAPI.java index 73b4de5..7e002d4 100644 --- a/common/src/main/java/com/gmail/picono435/randomtp/api/RandomTPAPI.java +++ b/common/src/main/java/com/gmail/picono435/randomtp/api/RandomTPAPI.java @@ -130,7 +130,6 @@ private static Pair generateBounds(ServerLevel world, Player p double minWorldBorderX = world.getWorldBorder().getMinX(); int maxDistanceX = (int) (Config.getMaxDistance() == 0 ? Math.abs(maxWorldBorderX) + 2 : player.getX() >= 0 ? Config.getMaxDistance() + Math.round(player.getX()) : Config.getMaxDistance() - Math.round(player.getX())); int minDistanceX = (int) (player.getX() >= 0 ? Config.getMinDistance() + player.getX() : Config.getMinDistance() - player.getX()); - System.out.println(maxDistanceX + " MXDISTANCE X"); int highX; if(Math.abs(maxDistanceX) >= Math.abs(maxWorldBorderX)) { highX = (int) maxWorldBorderX; @@ -145,7 +144,6 @@ private static Pair generateBounds(ServerLevel world, Player p } else { lowX = (int) minWorldBorderX; } - System.out.println(highX + " " + lowX + " " + maxWorldBorderX + " " + minWorldBorderX + " X"); return new Pair<>(lowX, highX); } else { // Calculating bounds for coordinates Z @@ -153,7 +151,6 @@ private static Pair generateBounds(ServerLevel world, Player p double minWorldBorderZ = world.getWorldBorder().getMinZ(); int maxDistanceZ = (int) (Config.getMaxDistance() == 0 ? Math.abs(maxWorldBorderZ) + 2 : player.getZ() >= 0 ? Config.getMaxDistance() + Math.round(player.getZ()) : Config.getMaxDistance() - Math.round(player.getZ())); int minDistanceZ = (int) (player.getZ() >= 0 ? Config.getMinDistance() + player.getZ() : Config.getMinDistance() - player.getZ()); - System.out.println(maxDistanceZ + " MXDISTANCE Z"); int highZ; if(Math.abs(maxDistanceZ) >= Math.abs(maxWorldBorderZ)) { highZ = (int) maxWorldBorderZ; @@ -168,7 +165,6 @@ private static Pair generateBounds(ServerLevel world, Player p } else { lowZ = (int) minWorldBorderZ; } - System.out.println(highZ + " " + lowZ + " " + maxWorldBorderZ + " " + minWorldBorderZ + " Z"); return new Pair<>(lowZ, highZ); } }