Fixed ContainerSetContentPacket being spammed before join

This commit is contained in:
Shoghi Cervantes
2014-05-30 01:26:57 +02:00
parent 0925898d8d
commit 5117bbf7f4
3 changed files with 4 additions and 4 deletions

View File

@@ -446,7 +446,7 @@ abstract class Entity extends Position implements Metadatable{
$this->server->broadcastPacket($this->hasSpawned, $pk);
}
if(!($this instanceof Player) and ($this->lastMotionX != $this->motionX or $this->lastMotionY != $this->motionY or $this->lastMotionZ != $this->motionZ) and ($this->ticksLived % 20) === 0){
if(!($this instanceof Player) and ($this->lastMotionX != $this->motionX or $this->lastMotionY != $this->motionY or $this->lastMotionZ != $this->motionZ)){
$this->lastMotionX = $this->motionX;
$this->lastMotionY = $this->motionY;
$this->lastMotionZ = $this->motionZ;