diff --git a/explorationtools.py b/explorationtools.py index 267d9e2..3e1a143 100755 --- a/explorationtools.py +++ b/explorationtools.py @@ -13,7 +13,8 @@ def getBodyCount(system): return System(system).bodyCount def distanceBetween(system1, system2): - return System(system1).distanceTo(System(system2)) + systems = System.getSystems(system1, system2) + return systems[0].distanceTo(systems[1]) def getCommanderPosition(name, apikey): coords = Commander(name, apikey).currentPosition