fix: move change carrier.location after jump after message building

This commit is contained in:
norohind committed 2021-08-12 02:11:41 +03:00
1 parent 4ec4f19a9c
commit 4e3dd5c946
1 file changed
+3 -2
+3 -2
View File
@@ -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"]