diff --git a/src/pocketmine/block/Chest.php b/src/pocketmine/block/Chest.php index cffc10ead..c321d3b89 100644 --- a/src/pocketmine/block/Chest.php +++ b/src/pocketmine/block/Chest.php @@ -22,6 +22,7 @@ namespace pocketmine\block; use pocketmine\item\Item; +use pocketmine\math\AxisAlignedBB; use pocketmine\nbt\NBT; use pocketmine\nbt\tag\Compound; use pocketmine\nbt\tag\Enum; @@ -41,6 +42,17 @@ class Chest extends Transparent{ $this->hardness = 15; } + public function getBoundingBox(){ + return new AxisAlignedBB( + $this->x + 0.0625, + $this->y, + $this->z + 0.0625, + $this->x + 0.9375, + $this->y + 0.875, + $this->z + 0.9375 + ); + } + public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){ $faces = [ 0 => 4,