Correct Painting placement

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-06 15:57:48 +01:00
parent 639cfc8ab8
commit 93fa008acb
2 changed files with 10 additions and 9 deletions

View file

@ -125,9 +125,6 @@ class Entity extends stdClass{
case ENTITY_OBJECT:
$this->setHealth(1, "generic");
//$this->setName((isset($objects[$this->type]) ? $objects[$this->type]:$this->type));
break;
case ENTITY_PAINTING:
break;
}
}
@ -300,7 +297,7 @@ class Entity extends stdClass{
}
}
if($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_OBJECT 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)){
$this->server->api->dhandle("entity.move", $this);
if($this->class === ENTITY_PLAYER){
$this->calculateVelocity();