Fix extractBlocksForUI

This commit is contained in:
ckcz123 2020-07-04 18:45:30 +08:00
parent 981538a175
commit 555e11b751

View File

@ -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));
}
}