Fixed bug in join autocorect

- It would add both numbers and the names to the autocorrect
This commit is contained in:
Logan Cusano
2023-06-19 00:23:29 -04:00
parent 83cef63109
commit fba0a2a2b2

View File

@@ -114,8 +114,8 @@ module.exports = {
for (const nodeObject of nodeObjects) {
log.DEBUG("Node object: ", nodeObject);
for (const presetName in nodeObject.nearbySystems) {
if (!isNaN(presetName)) presetsAvailable.push(nodeObject.nearbySystems[presetName]);
presetsAvailable.push(presetName)
if (!isNaN(presetName)) return presetsAvailable.push(nodeObject.nearbySystems[presetName]);
return presetsAvailable.push(presetName)
}
}