diff --git a/src/pocketmine/block/Cactus.php b/src/pocketmine/block/Cactus.php index 25a3ece93..381142b54 100644 --- a/src/pocketmine/block/Cactus.php +++ b/src/pocketmine/block/Cactus.php @@ -23,6 +23,7 @@ namespace pocketmine\block; use pocketmine\item\Item; use pocketmine\level\Level; +use pocketmine\math\AxisAlignedBB; use pocketmine\math\Vector3 as Vector3; use pocketmine\Player; @@ -33,6 +34,17 @@ class Cactus extends Transparent{ $this->hardness = 2; } + public function getBoundingBox(){ + return new AxisAlignedBB( + $this->x + 0.0625, + $this->y, + $this->z + 0.0625, + $this->x + 0.9375, + $this->y + 1, + $this->z + 0.9375 + ); + } + public function onUpdate($type){ if($type === Level::BLOCK_UPDATE_NORMAL){ $down = $this->getSide(0);