mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 09:10:00 +00:00
Added Soul Sand bounding box
This commit is contained in:
parent
a23352be88
commit
3eb8ca0d13
@ -22,10 +22,23 @@
|
|||||||
namespace pocketmine\block;
|
namespace pocketmine\block;
|
||||||
|
|
||||||
|
|
||||||
|
use pocketmine\math\AxisAlignedBB;
|
||||||
|
|
||||||
class SoulSand extends Solid{
|
class SoulSand extends Solid{
|
||||||
public function __construct(){
|
public function __construct(){
|
||||||
parent::__construct(self::SOUL_SAND, 0, "Soul Sand");
|
parent::__construct(self::SOUL_SAND, 0, "Soul Sand");
|
||||||
$this->hardness = 2.5;
|
$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
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user