56 if($player instanceof
Player){
57 $enderChest = $this->position->getWorld()->getTile($this->position);
58 if($enderChest instanceof TileEnderChest && $this->getSide(Facing::UP)->isTransparent()){
59 $enderChest->setViewerCount($enderChest->getViewerCount() + 1);
60 $player->setCurrentWindow(
new EnderChestInventory($this->position, $player->getEnderInventory()));