fix chest AABB

This commit is contained in:
Dylan K. Taylor 2017-10-27 19:16:06 +01:00
parent d1db27016e
commit 6ff1088a57

View File

@ -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
); );
} }