From 1af0b333ae619d45ddc603d8773f2c458b539180 Mon Sep 17 00:00:00 2001 From: LocalIdentity Date: Fri, 26 Jun 2026 00:04:19 +1000 Subject: [PATCH] Fix JSON import order 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 --- src/Classes/ImportTab.lua | 3 ++- src/HeadlessWrapper.lua | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Classes/ImportTab.lua b/src/Classes/ImportTab.lua index 0dcb9c59d9..f01ed51c73 100644 --- a/src/Classes/ImportTab.lua +++ b/src/Classes/ImportTab.lua @@ -328,8 +328,9 @@ local ImportTabClass = newClass("ImportTab", "ControlHost", "Control", function( end if self.importCodeJson then - self:ImportItemsAndSkills(self.importCodeJson) self:ImportPassiveTreeAndJewels(self.importCodeJson) + self.build.calcsTab:BuildOutput() + self:ImportItemsAndSkills(self.importCodeJson) return end diff --git a/src/HeadlessWrapper.lua b/src/HeadlessWrapper.lua index eb75b4d4e2..e96475afd3 100644 --- a/src/HeadlessWrapper.lua +++ b/src/HeadlessWrapper.lua @@ -218,8 +218,9 @@ end function loadBuildFromJSON(getItemsJSON, getPassiveSkillsJSON) mainObject.main:SetMode("BUILD", false, "") runCallback("OnFrame") + build.importTab:ImportPassiveTreeAndJewels(getPassiveSkillsJSON) + build.calcsTab:BuildOutput() local charData = build.importTab:ImportItemsAndSkills(getItemsJSON) - build.importTab:ImportPassiveTreeAndJewels(getPassiveSkillsJSON, charData) -- You now have a build without a correct main skill selected, or any configuration options set -- Good luck! end