Fix arenas not switching back from end biome

pull/14/head
Flashfyre 2023-12-31 10:33:34 -05:00
parent 0700e9313d
commit 5d7f69e35f
1 changed files with 4 additions and 2 deletions

View File

@ -597,7 +597,8 @@ export class ArenaBase extends Phaser.GameObjects.Container {
repeat: -1 repeat: -1
}); });
this.base.play(baseKey); this.base.play(baseKey);
} } else
this.base.stop();
this.add(this.base); this.add(this.base);
@ -619,7 +620,8 @@ export class ArenaBase extends Phaser.GameObjects.Container {
repeat: -1 repeat: -1
}); });
prop.play(propKey); prop.play(propKey);
} } else
prop.stop();
prop.setVisible(hasProps && !!(this.propValue & (1 << p))); prop.setVisible(hasProps && !!(this.propValue & (1 << p)));
this.add(prop); this.add(prop);