diff --git a/libs/events.js b/libs/events.js index 53340072..07268665 100644 --- a/libs/events.js +++ b/libs/events.js @@ -1150,6 +1150,7 @@ events.prototype.pushBox = function (data) { if (block==null) { core.status.thisMap.blocks.push(core.maps.initBlock(nx, ny, 169)); + block = core.getBlock(nx, ny); } else { block.block.id=170; diff --git a/project/floors/sample0.js b/project/floors/sample0.js index 22feae9b..63495eb3 100644 --- a/project/floors/sample0.js +++ b/project/floors/sample0.js @@ -22,7 +22,7 @@ main.floors.sample0 = [216, 247, 263, 235, 248, 6, 0, 3, 49, 50, 51, 52, 38], [6, 6, 125, 6, 6, 6, 0, 1, 45, 46, 47, 48, 37], [224, 254, 212, 262, 204, 5, 0, 1, 31, 32, 34, 33, 36], - [201, 261, 217, 215, 207, 5, 263, 1, 27, 28, 29, 30, 35], + [201, 261, 217, 264, 207, 5, 0, 1, 27, 28, 29, 30, 35], [5, 5, 125, 5, 5, 5, 0, 1, 21, 22, 23, 24, 25], [0, 0, 237, 0, 0, 0, 45, 1, 1, 1, 121, 1, 1], [4, 4, 133, 4, 4, 4, 0, 0, 0, 0, 0, 85, 124],