mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-07 12:10:46 +00:00
fix /portal for direction=z
This commit is contained in:
parent
e792f5d671
commit
894760ac36
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ module.exports.player=function(player,serv) {
|
||||||
const bottomLeft=new Vec3(x,y,z);
|
const bottomLeft=new Vec3(x,y,z);
|
||||||
if(direction!="x" && direction!="z")
|
if(direction!="x" && direction!="z")
|
||||||
throw new UserError('Wrong Direction');
|
throw new UserError('Wrong Direction');
|
||||||
direction=direction=='x' ? new Vec3(1,0,0) : Vec3(0,0,1);
|
direction=direction=='x' ? new Vec3(1,0,0) : new Vec3(0,0,1);
|
||||||
return {bottomLeft,direction,width,height};
|
return {bottomLeft,direction,width,height};
|
||||||
},
|
},
|
||||||
async action({bottomLeft,direction,width,height}) {
|
async action({bottomLeft,direction,width,height}) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue