From 16bbc243e8ad9ff55b0cceb41ef522fa925abfce Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 25 Apr 2024 23:20:21 +0700 Subject: [PATCH] Fix constellation generation --- .../ru/dbotthepony/kstarbound/server/world/ServerUniverse.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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