mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 09:21:48 +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