From 3825edaaab6f6299c25c22e8132cd45ff661ab4d Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Thu, 30 May 2013 12:51:56 +0200 Subject: [PATCH] Better item spawning on falling entity break --- src/world/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/Entity.php b/src/world/Entity.php index 08c97b17..6186a054 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -408,7 +408,7 @@ class Entity extends Position{ $fall = $this->level->getBlock(new Vector3(intval($this->x - 0.5), intval(ceil($this->y)), intval($this->z - 0.5))); $down = $this->level->getBlock(new Vector3(intval($this->x - 0.5), intval(ceil($this->y) - 1), intval($this->z - 0.5))); if($fall->isFullBlock === false or $down->isFullBlock === false){ - $this->server->api->entity->drop($this, BlockAPI::getItem($this->data["Tile"] & 0xFFFF, 0, 1), true); + $this->server->api->entity->drop(new Vector3(intval($this->x - 0.5), intval(ceil($this->y)), intval($this->z - 0.5)), BlockAPI::getItem($this->data["Tile"] & 0xFFFF, 0, 1), true); }else{ $this->level->setBlock($fall, BlockAPI::get($this->data["Tile"])); }