From 555e11b751fef5f297abb0338f09fd5a8d27dfeb Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Sat, 4 Jul 2020 18:45:30 +0800 Subject: [PATCH] Fix extractBlocksForUI --- libs/maps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/maps.js b/libs/maps.js index 8353cdda..351aa96f 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -99,7 +99,7 @@ maps.prototype.extractBlocksForUI = function (map, flags) { for (var i = 0; i < mh; i++) { for (var j = 0; j < mw; j++) { var number = (decompressed[i] || [])[j] || 0; - if (!number || number == 17 || this.isMapBlockDisabled(floorId, i, j, flags)) continue; + if (!number || number == 17 || this.isMapBlockDisabled(floorId, j, i, flags)) continue; map.blocks.push(this.initBlock(j, i, number)); } }