Update Sapling.php

This commit is contained in:
ArkQuark 2021-12-23 23:31:32 +03:00
parent 20a4a80f84
commit 2df57e1267

View file

@ -62,7 +62,7 @@ class SaplingBlock extends FlowableBlock{
public function onUpdate($type){
if($type === BLOCK_UPDATE_NORMAL){
if($this->getSide(0)->isTransparent === true){ //Replace with common break method
ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem($this->id));
ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem($this->id, $this->getMetadata()));
$this->level->setBlock($this, new AirBlock(), false, false, true);
return BLOCK_UPDATE_NORMAL;
}