mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-05 19:20:54 +00:00
Gona kill myself . . .
This commit is contained in:
parent
d334fc486c
commit
bb75c6c1a0
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue