fix for case when player joins game before zones scene loads
This commit is contained in:
@@ -121,7 +121,7 @@ class Zones extends Phaser.Scene {
|
||||
}
|
||||
|
||||
cleanUp() {
|
||||
this.scene.get('ZoneControls').cleanUp();
|
||||
if (this.scene.get('ZoneControls')) this.scene.get('ZoneControls').cleanUp();
|
||||
this.scene.remove();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user