This commit is contained in:
Romain Beaumont 2016-02-12 14:02:05 +01:00
parent ac603cff15
commit 9aa1255b8e
3 changed files with 8 additions and 5 deletions

View file

@ -3,8 +3,8 @@ var gulp = require('gulp');
var plumber = require('gulp-plumber');
var babel = require('gulp-babel');
var options = {
stage: 0, // Dat ES7 goodness
optional: ["runtime"]
presets: ['babel-preset-stage-0','es2015'],
plugins:['transform-runtime']
};
var sourcemaps = require('gulp-sourcemaps');

View file

@ -58,7 +58,9 @@
"url": "http://github.com/PrismarineJS/flying-squid/issues"
},
"devDependencies": {
"babel": "^6.5.1",
"babel-plugin-transform-runtime": "^6.5.0",
"babel-preset-es2015": "^6.5.0",
"babel-preset-stage-0": "^6.5.0",
"chai": "^3.2.0",
"doctoc": "^1.0.0",
"gulp": "^3.8.11",

View file

@ -62,8 +62,9 @@ async function findBorder(world,{line,direction},directionV)
top=positiveOrder(top,direction);
if(direction.y!=0)
[bottom,left,right,top]=[left,bottom,top,right];
if(direction.y!=0) {
[bottom, left, right, top] = [left, bottom, top, right];
}
[bottom,top]=directionV.y<0 ? [top,bottom] : [bottom,top];
const horDir=direction.x!=0 || directionV.x!=0 ? 'x' :'z';