mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Correct Painting placement
This commit is contained in:
parent
639cfc8ab8
commit
93fa008acb
2 changed files with 10 additions and 9 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue