mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 09:57:40 +03:00
Server Lagging check now works again.
Well, it doesn't now raise ServerLagging for a last Journal with a LoadGame on-foot and in-station. It does then cause "You're not docked at a station!" to show up.
This commit is contained in:
parent
b44320f47c
commit
b3cef1e29b
@ -784,12 +784,18 @@ class AppWindow(object):
|
|||||||
# CAPI system must match last journal one
|
# CAPI system must match last journal one
|
||||||
raise companion.ServerLagging()
|
raise companion.ServerLagging()
|
||||||
|
|
||||||
elif (monitor.on_foot and monitor.station
|
elif data['lastStarport']['name'] != monitor.station:
|
||||||
and data['lastStarport']['name'] != monitor.station # On foot station must match if set
|
if monitor.on_foot and monitor.station:
|
||||||
or ((data['commander']['docked'] and data['lastStarport']['name'] or None)
|
raise companion.ServerLagging()
|
||||||
!= monitor.station) # CAPI lastStarport must match
|
|
||||||
):
|
else:
|
||||||
raise companion.ServerLagging()
|
last_station = None
|
||||||
|
if data['commander']['docked']:
|
||||||
|
last_station = data['lastStarport']['name']
|
||||||
|
|
||||||
|
if last_station != monitor.station:
|
||||||
|
# CAPI lastStarport must match
|
||||||
|
raise companion.ServerLagging()
|
||||||
|
|
||||||
elif not monitor.on_foot and data['ship']['id'] != monitor.state['ShipID']:
|
elif not monitor.on_foot and data['ship']['id'] != monitor.state['ShipID']:
|
||||||
# CAPI ship must match
|
# CAPI ship must match
|
||||||
|
Loading…
x
Reference in New Issue
Block a user