mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Further cleanup to general AABB handling
This commit is contained in:
@ -24,6 +24,7 @@ declare(strict_types=1);
|
||||
namespace pocketmine\block;
|
||||
|
||||
use pocketmine\math\AxisAlignedBB;
|
||||
use pocketmine\math\Facing;
|
||||
|
||||
class SoulSand extends Solid{
|
||||
|
||||
@ -46,6 +47,6 @@ class SoulSand extends Solid{
|
||||
}
|
||||
|
||||
protected function recalculateBoundingBox() : ?AxisAlignedBB{
|
||||
return new AxisAlignedBB(0, 0, 0, 1, 1 - 0.125, 1);
|
||||
return AxisAlignedBB::one()->trim(Facing::UP, 1 / 8);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user