Skip to content

Commit

Permalink
fix: trapdoor.php visual edit
Browse files Browse the repository at this point in the history
  • Loading branch information
CJMustard1452 committed Aug 19, 2024
1 parent 10ac730 commit 7117617
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/block/Trapdoor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 7117617

Please sign in to comment.