Skip to content

Commit 16c43ef

Browse files
Sometimes factories might not have initialized
1 parent d94e8f8 commit 16c43ef

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

atlas_loader/atlas_proxy.script

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ end
4040
local function on_proxy_loaded(self, message, sender)
4141
msg.post(sender, INIT)
4242
msg.post(sender, ENABLE)
43-
atlas_loader.proxy_loaded(self.proxy_name, sender)
43+
---Waiting for factory initializations
44+
timer.delay(0, false, function()
45+
atlas_loader.proxy_loaded(self.proxy_name, sender)
46+
end)
4447
end
4548

4649
---Initialize script

game.project

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ input_method = HiddenInputField
1313

1414
[project]
1515
title = AtlasLoader
16-
version = 1.1.5
16+
version = 1.1.6
1717
dependencies#0 = https://github.com/andsve/dirtylarry/archive/refs/heads/master.zip
1818

1919
[library]

0 commit comments

Comments
 (0)