Fix constellation generation
This commit is contained in:
parent
be6277bb33
commit
16bbc243e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user