mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-21 16:13:57 +00:00
Fixed factory error when changing saves
This commit is contained in:
parent
d43899e938
commit
8367ef2099
1 changed files with 3 additions and 0 deletions
|
@ -1239,6 +1239,9 @@ const factory = createLayer(id, () => {
|
|||
let loaded = false;
|
||||
|
||||
globalBus.on("onLoad", async () => {
|
||||
if (loaded) {
|
||||
return;
|
||||
}
|
||||
loaded = false;
|
||||
|
||||
spriteContainer.destroy({
|
||||
|
|
Loading…
Reference in a new issue