diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerUniverse.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerUniverse.kt index 78440316..f63d706f 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerUniverse.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerUniverse.kt @@ -704,7 +704,7 @@ class ServerUniverse(folder: File? = null) : Universe(), Closeable { if ( proposed != existingLine && - proposed.distanceTo(existingLine.p0) < generationInformation.minimumConstellationLineCloseness + existingLine.distanceTo(proposed.p0) < generationInformation.minimumConstellationLineCloseness ) { valid = false break @@ -712,7 +712,7 @@ class ServerUniverse(folder: File? = null) : Universe(), Closeable { if ( proposed != existingLine.reverse() && - proposed.distanceTo(existingLine.p1) < generationInformation.minimumConstellationLineCloseness + existingLine.distanceTo(proposed.p1) < generationInformation.minimumConstellationLineCloseness ) { valid = false break