Wait for ApproachBody event before setting planetary body

So in effect planetary body is only set for landable planets.
This commit is contained in:
Jonathan Harris committed 2018-04-02 00:02:39 +01:00
1 parent b102b8c5b8
commit e342e9d17d
1 file changed
-2
-2
View File
@@ -451,8 +451,6 @@ class EDLogs(FileSystemEventHandler):
self.stationservices = entry.get('StationServices') # None under E:D < 2.4
elif entry['event'] == 'ApproachBody':
self.planet = entry['Body']
elif entry['event'] == 'SupercruiseExit':
self.planet = entry.get('Body') if entry.get('BodyType') == 'Planet' else None
elif entry['event'] in ['LeaveBody', 'SupercruiseEntry']:
self.planet = None