From 230357a82c69e188c217d64f9401106f610d7710 Mon Sep 17 00:00:00 2001 From: ArkQuark <74979909+ArkQuark@users.noreply.github.com> Date: Wed, 4 May 2022 21:17:31 +0300 Subject: [PATCH] Update WoodDoor.php --- src/material/block/nonfull/WoodDoor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material/block/nonfull/WoodDoor.php b/src/material/block/nonfull/WoodDoor.php index cdb48404..0e1b29c2 100644 --- a/src/material/block/nonfull/WoodDoor.php +++ b/src/material/block/nonfull/WoodDoor.php @@ -27,7 +27,7 @@ class WoodDoorBlock extends DoorBlock{ } public function onUpdate($type){ - if($type === BLOCK_UPDATE_NORMAL){ + if($type === BLOCK_UPDATE_NORMAL and $meta == 0x8){ if($this->getSide(0)->getID() === AIR){ //Replace with common break method ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem($this->id, $this->meta, 1)); $this->level->setBlock($this, new AirBlock(), true, false, true);