Correct Ice drop

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-20 16:38:41 +02:00
parent 47b54cfd28
commit 228075851c
3 changed files with 20 additions and 14 deletions

View file

@ -273,7 +273,9 @@ class BlockAPI{
if($this->server->api->dhandle("player.block.break", array("player" => $player, "target" => $target, "item" => $item)) !== false){
$drops = $target->getDrops($item, $player);
$target->onBreak($item, $player);
if($target->onBreak($item, $player) === false){
return $this->cancelAction($target, $player);
}
}else{
return $this->cancelAction($target, $player);
}