diff --git a/src/block/EnderChest.php b/src/block/EnderChest.php index 8047bd770..8eda13484 100644 --- a/src/block/EnderChest.php +++ b/src/block/EnderChest.php @@ -63,7 +63,7 @@ class EnderChest extends Transparent implements AnimatedContainerLike, Horizonta return SupportType::NONE; } - protected function isOpeningObstructed() : bool{ + public function isOpeningObstructed() : bool{ return !$this->getSide(Facing::UP)->isTransparent(); } diff --git a/src/inventory/Hotbar.php b/src/inventory/Hotbar.php index f9c1384dc..f3709df3d 100644 --- a/src/inventory/Hotbar.php +++ b/src/inventory/Hotbar.php @@ -23,7 +23,6 @@ declare(strict_types=1); namespace pocketmine\inventory; -use pocketmine\item\Item; use pocketmine\utils\ObjectSet; final class Hotbar{