From 848554bc0c392853244506cab900a2b84b7465a6 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Thu, 30 May 2013 19:34:31 +0200 Subject: [PATCH] Correct falling sand drop position --- 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 ac42ea5825..4c6035f370 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -393,7 +393,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(new Position(intval($this->x - 0.5), intval(ceil($this->y)), intval($this->z - 0.5), $this->level), BlockAPI::getItem($this->data["Tile"] & 0xFFFF, 0, 1), true); + $this->server->api->entity->drop($this, BlockAPI::getItem($this->data["Tile"] & 0xFFFF, 0, 1), true); }else{ $this->level->setBlock($fall, BlockAPI::get($this->data["Tile"])); }