From 3a0dc1194518c406d345f78c87439eea123d75ba Mon Sep 17 00:00:00 2001 From: Oskar Wallgren Date: Fri, 30 Aug 2024 23:04:29 +0200 Subject: [PATCH] Create BBS if empty This is a fixup from #5894 / a005ad4 Instead of updating the BBS it should be created if SpaceStation.adverts[station] is missing. --- data/libs/SpaceStation.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/libs/SpaceStation.lua b/data/libs/SpaceStation.lua index 7a20e1d037..09024391e7 100644 --- a/data/libs/SpaceStation.lua +++ b/data/libs/SpaceStation.lua @@ -901,8 +901,10 @@ end local function updateAdverts (station) if not SpaceStation.adverts[station] then logWarning("SpaceStation.lua: updateAdverts called for station that hasn't been visited") + Event.Queue("onCreateBB", station) + else + Event.Queue("onUpdateBB", station) end - Event.Queue("onUpdateBB", station) end --