Fix constellation generation

This commit is contained in:
DBotThePony 2024-04-25 23:20:21 +07:00
parent be6277bb33
commit 16bbc243e8
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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