Skip to content

Commit

Permalink
ensure enroute overlay is available when loaded as a module
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jun 20, 2024
1 parent 7ce6598 commit c5632e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions prioritize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,6 @@ if dfhack.internal.IN_TEST then
}
end

if dfhack_flags.module then
return
end

--------------------------------
-- EnRouteOverlay
--
Expand Down Expand Up @@ -720,6 +716,10 @@ end

OVERLAY_WIDGETS = {enroute=EnRouteOverlay}

if dfhack_flags.module then
return
end

if df.global.gamemode ~= df.game_mode.DWARF or not dfhack.isMapLoaded() then
dfhack.printerr('prioritize needs a loaded fortress map to work')
return
Expand Down

0 comments on commit c5632e4

Please sign in to comment.