mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
fix doors being considered 3 blocks tall by collision detection in some cases
This commit is contained in:
parent
73b2669712
commit
d58339b2fd
@ -93,9 +93,7 @@ class Door extends Transparent{
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function recalculateBoundingBox() : ?AxisAlignedBB{
|
protected function recalculateBoundingBox() : ?AxisAlignedBB{
|
||||||
return AxisAlignedBB::one()
|
return AxisAlignedBB::one()->trim($this->open ? Facing::rotateY($this->facing, !$this->hingeRight) : $this->facing, 13 / 16);
|
||||||
->extend(Facing::UP, 1)
|
|
||||||
->trim($this->open ? Facing::rotateY($this->facing, !$this->hingeRight) : $this->facing, 13 / 16);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onNearbyBlockChange() : void{
|
public function onNearbyBlockChange() : void{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user