From 7117617e7761e114480233b3dbd4e902afc2c68f Mon Sep 17 00:00:00 2001 From: CJ <80650734+CJMustard1452@users.noreply.github.com> Date: Mon, 19 Aug 2024 17:30:10 -0500 Subject: [PATCH] fix: trapdoor.php visual edit --- src/block/Trapdoor.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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(); } }