Added Farmland bounding box

This commit is contained in:
Shoghi Cervantes 2014-08-30 23:07:55 +02:00
parent cf542ac73a
commit ccea26c978

View File

@ -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],