We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae46aec commit 38ac178Copy full SHA for 38ac178
game/GameMap.js
@@ -795,6 +795,8 @@ class GameMap {
795
}
796
797
async moveField(destInfo) {
798
+ const rmdFileName = typeof destInfo === 'string' ? destInfo : destInfo.string;
799
+
800
if (typeof destInfo === 'string' && rmdFileName === this.currentRmdFileName) return;
801
802
const isInnerPortal = destInfo?.gateShape === GAS_INNER_PORTAL;
@@ -810,8 +812,6 @@ class GameMap {
810
812
RedStone.miniMap.reset();
811
813
this.reset();
814
- const rmdFileName = typeof destInfo === 'string' ? destInfo : destInfo.string;
-
815
await this.loadMap(rmdFileName, gateSerial);
816
await this.init();
817
RedStone.mainCanvas.mainContainer.removeChild(RedStone.player.container);
0 commit comments