87 $this->facing = $player->getHorizontalFacing();
90 $this->inWall = $this->checkInWall();
92 return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player);
104 $this->open = !$this->open;
105 if($this->open && $player !==
null){
106 $playerFacing = $player->getHorizontalFacing();
107 if($playerFacing === Facing::opposite($this->facing)){
108 $this->facing = $playerFacing;
112 $world = $this->position->getWorld();
113 $world->setBlock($this->position, $this);
114 $world->addSound($this->position,
new DoorSound());