Plant fix

This commit is contained in:
ArkQuark 2022-06-05 17:59:54 +03:00
parent 133f398a42
commit a8d4797cf2
8 changed files with 31 additions and 15 deletions

View file

@ -53,7 +53,7 @@ class BeetrootBlock extends FlowableBlock{
public function onUpdate($type){
if($type === BLOCK_UPDATE_NORMAL){
if($this->getSide(0)->isTransparent === true){ //Replace with common break method
if($this->getSide(0)->getID() != 60){
ServerAPI::request()->api->entity->drop(new Position($this->x + 0.5, $this->y, $this->z + 0.5, $this->level), BlockAPI::getItem(BEETROOT_SEEDS, 0, 1));
$this->level->setBlock($this, new AirBlock(), false, false, true);
return BLOCK_UPDATE_NORMAL;