mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-17 13:31:16 +00:00
fix diff check : see http://wiki.vg/Protocol#Entity_Look_And_Relative_Move
This commit is contained in:
parent
ef632d0919
commit
52f6cdffbe
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ function inject(serv,player)
|
|||
function sendRelativePositionChange(newPosition, onGround) {
|
||||
if (player.entity.position.distanceTo(new vec3(0, 0, 0)) != 0) {
|
||||
var diff = newPosition.minus(player.entity.position);
|
||||
if(diff.abs().x>256 || diff.abs().y>256 || diff.abs().z>256)
|
||||
if(diff.abs().x>127 || diff.abs().y>127 || diff.abs().z>127)
|
||||
{
|
||||
player._writeOthers('entity_teleport', {
|
||||
entityId:player.entity.id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue