From 281d3b037fdf44a0403ba66d10398c8a1ad5544e Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Mon, 20 May 2013 16:53:57 +0200 Subject: [PATCH] Fixed #255 Player and item bounding boxes --- src/world/Entity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world/Entity.php b/src/world/Entity.php index 7490f9fe48..050e3decde 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -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");