mirror of
https://github.com/norohind/EDMC-FCTracker.git
synced 2026-11-26 02:46:41 +03:00
fix: move change carrier.location after jump after message building
This commit is contained in:
1 file changed
+3
-2
@@ -371,8 +371,6 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
|
||||
|
||||
destination_system = entry["StarSystem"]
|
||||
|
||||
carrier.location = destination_system # Update carrier.location by carrier jump
|
||||
|
||||
message.add_item(color=Messages.COLOR_JUMP, title=Messages.TITLE_JUMP)
|
||||
|
||||
try:
|
||||
@@ -398,6 +396,9 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
|
||||
key='description',
|
||||
new_value=Messages.TEXT_JUMP_FROM.format(from_system=carrier.location))
|
||||
|
||||
logger.debug(f'Updating FC location according to jump event {carrier.location} -> {destination_system}')
|
||||
carrier.location = destination_system # Update carrier.location by carrier jump
|
||||
|
||||
if event == "CarrierDockingPermission" and \
|
||||
config.get_bool('FCT_SEND_CHANGES_DOCKING_PERMISSIONS', default=True):
|
||||
new_permission = entry["DockingAccess"]
|
||||
|
||||
Reference in new issue
Block a user