Further cleanup to general AABB handling

This commit is contained in:
Dylan K. Taylor
2018-11-24 19:17:03 +00:00
parent d5ae4ad141
commit b2201c8c59
25 changed files with 36 additions and 58 deletions

View File

@ -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{