mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Fixed players receiving double SetEntityMotionPackets for themselves
This commit is contained in:
parent
dda8c6cc8f
commit
01440fb659
@ -1578,12 +1578,6 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
if(parent::setMotion($mot)){
|
if(parent::setMotion($mot)){
|
||||||
if($this->chunk !== null){
|
if($this->chunk !== null){
|
||||||
$this->level->addEntityMotion($this->chunk->getX(), $this->chunk->getZ(), $this->getId(), $this->motionX, $this->motionY, $this->motionZ);
|
$this->level->addEntityMotion($this->chunk->getX(), $this->chunk->getZ(), $this->getId(), $this->motionX, $this->motionY, $this->motionZ);
|
||||||
$pk = new SetEntityMotionPacket();
|
|
||||||
$pk->eid = $this->id;
|
|
||||||
$pk->motionX = $mot->x;
|
|
||||||
$pk->motionY = $mot->y;
|
|
||||||
$pk->motionZ = $mot->z;
|
|
||||||
$this->dataPacket($pk);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->motionY > 0){
|
if($this->motionY > 0){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user