Skip to content

Commit 766246f

Browse files
committed
Fix crash when installing smods for the first time
1 parent 0a86121 commit 766246f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/preflight/loader.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,6 @@ local function doGameHooks()
800800
local init_item_prototypes_ref = Game.init_item_prototypes
801801
function Game:init_item_prototypes()
802802
init_item_prototypes_ref(self)
803-
convert_save_data()
804803
if SMODS.booted then
805804
SMODS.injectItems()
806805
end
@@ -817,8 +816,10 @@ local function initSteamodded()
817816
initializeModUIFunctions()
818817
-- boot_print_stage("Injecting Items")
819818
SMODS.injectItems()
819+
convert_save_data()
820820
SMODS.booted = true
821821

822+
822823
-- re-inject on reload
823824
end
824825

version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
return "1.0.0~BETA-1502a-STEAMODDED"
1+
return "1.0.0~BETA-1502b-STEAMODDED"

0 commit comments

Comments
 (0)