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() {
|
cleanUp() {
|
||||||
this.scene.get('ZoneControls').cleanUp();
|
if (this.scene.get('ZoneControls')) this.scene.get('ZoneControls').cleanUp();
|
||||||
this.scene.remove();
|
this.scene.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user