mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
fix chest AABB
This commit is contained in:
@@ -53,13 +53,14 @@ class Chest extends Transparent{
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function recalculateBoundingBox() : ?AxisAlignedBB{
|
protected function recalculateBoundingBox() : ?AxisAlignedBB{
|
||||||
|
//these are slightly bigger than in PC
|
||||||
return new AxisAlignedBB(
|
return new AxisAlignedBB(
|
||||||
$this->x + 0.0625,
|
$this->x + 0.025,
|
||||||
$this->y,
|
$this->y,
|
||||||
$this->z + 0.0625,
|
$this->z + 0.025,
|
||||||
$this->x + 0.9375,
|
$this->x + 0.975,
|
||||||
$this->y + 0.9475,
|
$this->y + 0.95,
|
||||||
$this->z + 0.9375
|
$this->z + 0.975
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user