Fix fix fix

This commit is contained in:
Shoghi Cervantes 2013-09-04 20:25:36 +02:00
parent b4bfceeb6d
commit fc3fb651b2

View File

@ -520,6 +520,7 @@ class Entity extends Position{
if($this->closed === true){
return false;
}
$now = microtime(true);
if($this->isStatic === false and ($this->last[0] != $this->x or $this->last[1] != $this->y or $this->last[2] != $this->z or $this->last[3] != $this->yaw or $this->last[4] != $this->pitch)){
if($this->class === ENTITY_PLAYER or ($this->last[5] + 8) < $now){
if($this->server->api->handle("entity.move", $this) === false){