From 8367ef20992c648ba93853f3ae89d79893418790 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Fri, 23 Dec 2022 09:42:26 -0600 Subject: [PATCH] Fixed factory error when changing saves --- src/data/layers/factory.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/data/layers/factory.tsx b/src/data/layers/factory.tsx index f7f6b51..d234204 100644 --- a/src/data/layers/factory.tsx +++ b/src/data/layers/factory.tsx @@ -1239,6 +1239,9 @@ const factory = createLayer(id, () => { let loaded = false; globalBus.on("onLoad", async () => { + if (loaded) { + return; + } loaded = false; spriteContainer.destroy({