diff --git a/src/block/Trapdoor.php b/src/block/Trapdoor.php index e205e8c034f..23c6e078112 100644 --- a/src/block/Trapdoor.php +++ b/src/block/Trapdoor.php @@ -93,11 +93,7 @@ public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player } public function onProjectileInteraction(Projectile $projectile) : void{ - if($projectile instanceof WindCharge){ - if($this->getTypeId() === BlockTypeIds::IRON_TRAPDOOR) { - return; - } - + if($projectile instanceof WindCharge && $this->getTypeId() !== BlockTypeIds::IRON_TRAPDOOR){ $this->toggle(); } }