Fixed #255 Player and item bounding boxes

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-20 16:53:57 +02:00
parent 13b00988f0
commit 281d3b037f

View File

@ -97,7 +97,7 @@ class Entity extends Position{
case ENTITY_PLAYER:
$this->player = $this->data["player"];
$this->setHealth($this->health, "generic");
$this->size = 1;
$this->size = 1.2;
break;
case ENTITY_ITEM:
if(isset($data["item"]) and ($data["item"] instanceof Item)){
@ -109,7 +109,7 @@ class Entity extends Position{
}
$this->setHealth(5, "generic");
$this->server->schedule(5, array($this, "update"), array(), true);
$this->size = 0.25;
$this->size = 0.5;
break;
case ENTITY_MOB:
$this->setHealth($this->data["Health"], "generic");