From 10c0d83fa5065bd84eeff0c1053f46e133d0d142 Mon Sep 17 00:00:00 2001 From: IvanCraft623 <57236932+IvanCraft623@users.noreply.github.com> Date: Wed, 9 Mar 2022 11:37:23 -0500 Subject: [PATCH] ShulkerBox: Allow opening unless the lid is obstructed by a solid block (#4885) fixes #4884 --- src/block/ShulkerBox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block/ShulkerBox.php b/src/block/ShulkerBox.php index 18cd38ff8a..672cc1a11a 100644 --- a/src/block/ShulkerBox.php +++ b/src/block/ShulkerBox.php @@ -91,7 +91,7 @@ class ShulkerBox extends Opaque{ $shulker = $this->position->getWorld()->getTile($this->position); if($shulker instanceof TileShulkerBox){ if( - $this->getSide($this->facing)->getId() !== BlockLegacyIds::AIR || + $this->getSide($this->facing)->isSolid() || !$shulker->canOpenWith($item->getCustomName()) ){ return true;