mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 11:45:30 +00:00
Fixed players don't see teleport movement, close #921
This commit is contained in:
parent
54453d0b0a
commit
e83ffd5afe
@ -4018,6 +4018,9 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
}
|
||||
|
||||
$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->forceMovement = $this->teleportPosition;
|
||||
$this->teleportPosition = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user