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:
@ -64,8 +64,7 @@ class FenceGate extends Transparent{
|
||||
return null;
|
||||
}
|
||||
|
||||
$bb = new AxisAlignedBB(0, 0, 0, 1, 1.5, 1);
|
||||
return $bb->squash(Facing::axis($this->facing), 6 / 16);
|
||||
return AxisAlignedBB::one()->extend(Facing::UP, 0.5)->squash(Facing::axis($this->facing), 6 / 16);
|
||||
}
|
||||
|
||||
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{
|
||||
|
Reference in New Issue
Block a user