Skip to content

Commit 59b5e23

Browse files
LocalIdentityLocalIdentity
andauthored
Fix JSON import order (#2297)
The JSON import order was doing items before the passive tree so builds that used giants blood or the other nodes that change item equips would not work Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 500d97e commit 59b5e23

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/Classes/ImportTab.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,9 @@ local ImportTabClass = newClass("ImportTab", "ControlHost", "Control", function(
328328
end
329329

330330
if self.importCodeJson then
331-
self:ImportItemsAndSkills(self.importCodeJson)
332331
self:ImportPassiveTreeAndJewels(self.importCodeJson)
332+
self.build.calcsTab:BuildOutput()
333+
self:ImportItemsAndSkills(self.importCodeJson)
333334
return
334335
end
335336

src/HeadlessWrapper.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,9 @@ end
218218
function loadBuildFromJSON(getItemsJSON, getPassiveSkillsJSON)
219219
mainObject.main:SetMode("BUILD", false, "")
220220
runCallback("OnFrame")
221+
build.importTab:ImportPassiveTreeAndJewels(getPassiveSkillsJSON)
222+
build.calcsTab:BuildOutput()
221223
local charData = build.importTab:ImportItemsAndSkills(getItemsJSON)
222-
build.importTab:ImportPassiveTreeAndJewels(getPassiveSkillsJSON, charData)
223224
-- You now have a build without a correct main skill selected, or any configuration options set
224225
-- Good luck!
225226
end

0 commit comments

Comments
 (0)