mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-16 13:01:12 +00:00
actually use teleport
This commit is contained in:
parent
49e313d72b
commit
bddc8d117d
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ function inject(serv,player)
|
|||
var diff = newPosition.minus(player.entity.position);
|
||||
if(diff.abs().x>256 || diff.abs().y>256 || diff.abs().z>256)
|
||||
{
|
||||
player._client.write('entity_teleport', {
|
||||
player._writeOthers('entity_teleport', {
|
||||
entityId:player.entity.id,
|
||||
x: newPosition.x,
|
||||
y: newPosition.y,
|
||||
|
|
|
|||
Loading…
Reference in a new issue