Fixed speed limiter

This commit is contained in:
Shoghi Cervantes 2013-09-04 20:49:14 +02:00
parent 9db1b741a7
commit 8515e7ff33
2 changed files with 4 additions and 2 deletions

View file

@ -507,13 +507,14 @@ class Entity extends Position{
}
}
$this->lastUpdate = $now;
if($this->class !== ENTITY_PLAYER){
$this->updateMovement();
if($hasUpdate === true){
$this->server->schedule(5, array($this, "update"));
}
}
$this->lastUpdate = $now;
}
public function updateMovement(){
@ -548,6 +549,7 @@ class Entity extends Position{
$this->updatePosition($this->x, $this->y, $this->z, $this->yaw, $this->pitch);
}
}
$this->lastUpdate = $now;
}
public function getDirection(){