fix doors being considered 3 blocks tall by collision detection in some cases

This commit is contained in:
Dylan K. Taylor 2019-08-15 16:54:14 +01:00
parent 73b2669712
commit d58339b2fd

View File

@ -93,9 +93,7 @@ class Door extends Transparent{
}
protected function recalculateBoundingBox() : ?AxisAlignedBB{
return AxisAlignedBB::one()
->extend(Facing::UP, 1)
->trim($this->open ? Facing::rotateY($this->facing, !$this->hingeRight) : $this->facing, 13 / 16);
return AxisAlignedBB::one()->trim($this->open ? Facing::rotateY($this->facing, !$this->hingeRight) : $this->facing, 13 / 16);
}
public function onNearbyBlockChange() : void{