Added Soul Sand bounding box

This commit is contained in:
Shoghi Cervantes 2014-08-30 23:47:39 +02:00
parent a23352be88
commit 3eb8ca0d13

View File

@ -22,10 +22,23 @@
namespace pocketmine\block;
use pocketmine\math\AxisAlignedBB;
class SoulSand extends Solid{
public function __construct(){
parent::__construct(self::SOUL_SAND, 0, "Soul Sand");
$this->hardness = 2.5;
}
public function getBoundingBox(){
return new AxisAlignedBB(
$this->x,
$this->y,
$this->z,
$this->x + 1,
$this->y + 1 - 0.125,
$this->z + 1
);
}
}