Fixed factory error when changing saves

This commit is contained in:
thepaperpilot 2022-12-23 09:42:26 -06:00
parent d43899e938
commit 8367ef2099

View file

@ -1239,6 +1239,9 @@ const factory = createLayer(id, () => {
let loaded = false;
globalBus.on("onLoad", async () => {
if (loaded) {
return;
}
loaded = false;
spriteContainer.destroy({