Skip to content

Commit

Permalink
Create BBS if empty
Browse files Browse the repository at this point in the history
This is a fixup from #5894 / a005ad4
Instead of updating the BBS it should be created if
SpaceStation.adverts[station] is missing.
  • Loading branch information
zonkmachine authored and Web-eWorks committed Aug 30, 2024
1 parent d6c03a1 commit 3a0dc11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data/libs/SpaceStation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

--
Expand Down

0 comments on commit 3a0dc11

Please sign in to comment.