Drop in the correct position

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-07 17:44:28 +01:00
parent 8253d63d9b
commit 1c63448c6c

View File

@ -778,7 +778,7 @@ class Player{
$data["item"] = $item; $data["item"] = $item;
if($this->server->handle("player.drop", $data) !== false){ if($this->server->handle("player.drop", $data) !== false){
$this->removeItem($item->getID(), $item->getMetadata(), $item->count); $this->removeItem($item->getID(), $item->getMetadata(), $item->count);
$this->server->api->block->drop(new Vector3($this->entity->x, $this->entity->y, $this->entity->z), $item); $this->server->api->block->drop(new Vector3($this->entity->x - 0.5, $this->entity->y, $this->entity->z - 0.5), $item);
} }
break; break;
case MC_SIGN_UPDATE: case MC_SIGN_UPDATE: