Fix type:turnBlock

This commit is contained in:
ckcz123 2020-06-12 12:31:10 +08:00
parent 5347c7e99c
commit 615858e92e

View File

@ -1370,7 +1370,7 @@ events.prototype._action_setBlock = function (data, x, y, prefix) {
events.prototype._action_turnBlock = function (data, x, y, prefix) {
data.loc = this.__action_getLoc2D(data.loc, x, y, prefix);
data.loc.forEach(function (t) {
core.turnBlock(data.number, t[0], t[1], data.floorId);
core.turnBlock(data.direction, t[0], t[1], data.floorId);
});
core.doAction();
}