mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-15 22:05:06 +00:00
Fixed players don't see teleport movement, close #921
This commit is contained in:
@ -4018,6 +4018,9 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->sendPosition($this, null, null, MovePlayerPacket::MODE_RESET);
|
$this->sendPosition($this, null, null, MovePlayerPacket::MODE_RESET);
|
||||||
|
//This only needs to be sent to players who could see us before the teleport.
|
||||||
|
$this->sendPosition($this, null, null, MovePlayerPacket::MODE_RESET, $this->getViewers());
|
||||||
|
|
||||||
$this->spawnToAll();
|
$this->spawnToAll();
|
||||||
$this->forceMovement = $this->teleportPosition;
|
$this->forceMovement = $this->teleportPosition;
|
||||||
$this->teleportPosition = null;
|
$this->teleportPosition = null;
|
||||||
|
Reference in New Issue
Block a user