Skip to content

Commit

Permalink
Repopulate BBS if empty
Browse files Browse the repository at this point in the history
There is an infrequent issue where the BBS will show up empty on a
game reload as SpaceStation.adverts[station] is missing.
This fix will cause the BBS to repopulate itself but only from
those modules that impements onUpdateBB(). It will not solve the
underlying cause.

Addresses #5886
  • Loading branch information
zonkmachine authored and Webster Sheets committed Aug 23, 2024
1 parent 105381d commit a005ad4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data/libs/SpaceStation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -901,9 +901,8 @@ end
local function updateAdverts (station)
if not SpaceStation.adverts[station] then
logWarning("SpaceStation.lua: updateAdverts called for station that hasn't been visited")
else
Event.Queue("onUpdateBB", station)
end
Event.Queue("onUpdateBB", station)
end

--
Expand Down

0 comments on commit a005ad4

Please sign in to comment.