mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Tool: cleanup durability handling, closes #379
long overdue... this isn't quite as extensible as the original api3/blocks system was, but this is primarily intended to replace Item->useOn(). If plugins want to use it it can be extended later on.
This commit is contained in:
@ -1718,7 +1718,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$this->destroyBlockInternal($t, $item, $player, $createParticles);
|
||||
}
|
||||
|
||||
$item->useOn($target);
|
||||
$item->onDestroyBlock($target);
|
||||
|
||||
if(!empty($drops)){
|
||||
$dropPos = $target->add(0.5, 0.5, 0.5);
|
||||
|
Reference in New Issue
Block a user