Skip to content

Commit

Permalink
Fix being able to jump with multiple destinations planned in the route
Browse files Browse the repository at this point in the history
  • Loading branch information
JonBooth78 committed Jan 28, 2024
1 parent 7c515ef commit d018a27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/pigui/views/map-sector-view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,9 @@ ui.registerModule("game", { id = 'map-sector-view', draw = function()
end})

Event.Register("onGameStart", onGameStart)
Event.Register("onEnterSystem", function()
hyperJumpPlanner.onEnterSystem()
hyperspaceDetailsCache = {}
Event.Register("onEnterSystem", function(ship)
hyperJumpPlanner.onEnterSystem(ship)
if ship:IsPlayer() then hyperspaceDetailsCache = {} end
end)

-- reset cached data
Expand Down

0 comments on commit d018a27

Please sign in to comment.