mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Player: reset ySize when syncing movement
This commit is contained in:
parent
89fe8f7f10
commit
dac76f0e0f
@ -3903,10 +3903,12 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
if($targets !== null){
|
if($targets !== null){
|
||||||
if(in_array($this, $targets, true)){
|
if(in_array($this, $targets, true)){
|
||||||
$this->forceMoveSync = $pos->asVector3();
|
$this->forceMoveSync = $pos->asVector3();
|
||||||
|
$this->ySize = 0;
|
||||||
}
|
}
|
||||||
$this->server->broadcastPacket($targets, $pk);
|
$this->server->broadcastPacket($targets, $pk);
|
||||||
}else{
|
}else{
|
||||||
$this->forceMoveSync = $pos->asVector3();
|
$this->forceMoveSync = $pos->asVector3();
|
||||||
|
$this->ySize = 0;
|
||||||
$this->dataPacket($pk);
|
$this->dataPacket($pk);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user