From a6b50c17abdc856681917e5d3216f29aa9d8f9e1 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Sun, 17 Dec 2017 22:18:26 +0800 Subject: [PATCH] Fix Bug --- libs/core.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/core.js b/libs/core.js index 9c69577f..217f8b5a 100644 --- a/libs/core.js +++ b/libs/core.js @@ -1698,6 +1698,12 @@ core.prototype.drawAutotileBlock = function (map, x, y, size, autotile, index) { } } +core.prototype.autotileExists = function (x, y, floorId) { + var block = core.getBlock(x,y,floorId); + if (block==null) return false; + return block.block.event.cls == 'autotile'; +} + core.prototype.noPassExists = function (x, y, floorId) { var block = core.getBlock(x,y,floorId); if (block==null) return false;