fix for case when player joins game before zones scene loads

This commit is contained in:
Mashy 2019-01-22 17:15:14 +10:00
parent d022b27503
commit aefcc5bd32

View File

@ -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();
}
}