Gona kill myself . . .

This commit is contained in:
azastrael 2015-12-06 04:19:15 +01:00
parent d334fc486c
commit bb75c6c1a0

View file

@ -44,10 +44,10 @@ module.exports.player=function(player)
} }
player._client.on('position', ({x,y,z,onGround} = {}) => player._client.on('position', ({x,y,z,onGround} = {}) =>
sendRelativePositionChange((new Vec3(x, y, z)).toFixedPosition(), onGround)); player.sendRelativePositionChange((new Vec3(x, y, z)).toFixedPosition(), onGround));
player._client.on('position_look', ({x,y,z,onGround,yaw,pitch} = {}) => { player._client.on('position_look', ({x,y,z,onGround,yaw,pitch} = {}) => {
sendRelativePositionChange((new Vec3(x, y, z)).toFixedPosition(), onGround); player.sendRelativePositionChange((new Vec3(x, y, z)).toFixedPosition(), onGround);
sendLook(yaw,pitch,onGround); sendLook(yaw,pitch,onGround);
}); });