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