mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Fixed motion update spam
This commit is contained in:
parent
97a687c03a
commit
325bcc367d
@ -447,8 +447,10 @@ abstract class Entity extends Position implements Metadatable{
|
||||
}
|
||||
|
||||
if(!($this instanceof Player) and ($this->lastMotionX != $this->motionX or $this->lastMotionY != $this->motionY or $this->lastMotionZ != $this->motionZ)){
|
||||
$this->motionChanged = false;
|
||||
|
||||
$this->lastMotionX = $this->motionX;
|
||||
$this->lastMotionY = $this->motionY;
|
||||
$this->lastMotionZ = $this->motionZ;
|
||||
|
||||
$pk = new SetEntityMotionPacket;
|
||||
$pk->eid = $this->id;
|
||||
$pk->speedX = $this->motionX;
|
||||
|
Loading…
x
Reference in New Issue
Block a user