Skip to content

Commit c9f6bb0

Browse files
committed
Fix ragged json.
1 parent f0fa434 commit c9f6bb0

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

LuaMenu/widgets/gui_planetwars_list_window.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ local function GetActivityToPrompt(lobby, attackerFactions, defenderFactions, cu
147147
return false
148148
end
149149

150-
Spring.Echo("GetActivityToPromptGetActivityToPrompt", lobby.planetwarsData.attackingPlanet, lobby.planetwarsData.joinPlanet)
151150
if lobby.planetwarsData.attackingPlanet and planets then
152151
local myPlanet = FindMyAttackPhasePlanet(planets)
153152
if myPlanet then

libs/liblobby/lobby/interface_shared.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ function Interface:_SocketUpdate()
290290
if not (success and internalSuccess) then
291291
Spring.Echo("Processing failed for", commands[1])
292292
self.allFailRepeats = (self.allFailRepeats or 0) + 1
293+
if #commands == 1 then
294+
self.raggedJsonStore[#self.raggedJsonStore + 1] = commands[1]
295+
end
293296
end
294297
else
295298
self.allFailRepeats = 0

0 commit comments

Comments
 (0)