Updated the BlockAPI::drop method

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-04 16:50:11 +01:00
parent 326864f889
commit 287fa7e551
6 changed files with 27 additions and 28 deletions

View file

@ -747,7 +747,7 @@ class Player{
break;
}
if($this->server->handle("player.drop", $data) !== false){
$this->server->api->block->drop($this->entity->x, $this->entity->y, $this->entity->z, $data["block"], $data["meta"], $data["stack"]);
$this->server->api->block->drop(new Vector3($this->entity->x, $this->entity->y, $this->entity->z), BlockAPI::getItem($data["block"], $data["meta"], $data["stack"]));
}
break;
case MC_SIGN_UPDATE: