Name update

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-07 19:56:07 +01:00
parent 5fab555c48
commit 5c17f77bcc
3 changed files with 7 additions and 21 deletions

View file

@ -202,7 +202,7 @@ class BlockAPI{
"z" => $pos->z + mt_rand(2, 8) / 10,
"item" => $item,
);
if($this->server->api->handle("block.drop", $data) !== false){
if($this->server->api->handle("item.drop", $data) !== false){
for($count = $item->count; $count > 0; ){
$item->count = min($item->getMaxStackSize(), $count);
$count -= $item->count;