mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Correct Ice drop
This commit is contained in:
parent
47b54cfd28
commit
228075851c
3 changed files with 20 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue