quick fix?
This commit is contained in:
parent
6af1651e03
commit
22c501e5e0
@ -429,6 +429,19 @@ export class GameScene extends DirtyScene {
|
|||||||
|
|
||||||
//hook create scene
|
//hook create scene
|
||||||
create(): void {
|
create(): void {
|
||||||
|
if (!this.mapFile) {
|
||||||
|
if (this.roomUrl == localUserStore.getLastRoomUrl()) {
|
||||||
|
localUserStore.setLastRoomUrl(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
//display an error scene
|
||||||
|
this.scene.start(ErrorSceneName, {
|
||||||
|
title: "Network error",
|
||||||
|
subTitle: "An error occurred while loading resource:",
|
||||||
|
message: this.originalMapUrl,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
this.preloading = false;
|
this.preloading = false;
|
||||||
this.trackDirtyAnims();
|
this.trackDirtyAnims();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user