diff --git a/src/pocketmine/block/Farmland.php b/src/pocketmine/block/Farmland.php index 293886b90..49c3217c1 100644 --- a/src/pocketmine/block/Farmland.php +++ b/src/pocketmine/block/Farmland.php @@ -22,6 +22,7 @@ namespace pocketmine\block; use pocketmine\item\Item; +use pocketmine\math\AxisAlignedBB; class Farmland extends Solid{ public function __construct($meta = 0){ @@ -29,6 +30,17 @@ class Farmland extends Solid{ $this->hardness = 3; } + public function getBoundingBox(){ + return new AxisAlignedBB( + $this->x, + $this->y, + $this->z, + $this->x + 1, + $this->y + 0.9375, + $this->z + 1 + ); + } + public function getDrops(Item $item){ return [ [Item::DIRT, 0, 1],