fix for case when player joins game before zones scene loads
This commit is contained in:
parent
d022b27503
commit
aefcc5bd32
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user