From cc753a84bdf85013673ab02ac9a801ba2daf335d Mon Sep 17 00:00:00 2001 From: Oskar Wallgren Date: Tue, 20 Aug 2024 22:43:41 +0200 Subject: [PATCH] Repopulate BBS if empty 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 --- data/libs/SpaceStation.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/libs/SpaceStation.lua b/data/libs/SpaceStation.lua index 66b3030ebe..7a20e1d037 100644 --- a/data/libs/SpaceStation.lua +++ b/data/libs/SpaceStation.lua @@ -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 --