Update Math dependency, obliterate some nasty code from Block

This commit is contained in:
Dylan K. Taylor
2018-11-23 19:41:52 +00:00
parent 4c848bb4c1
commit 101de7adda
9 changed files with 31 additions and 203 deletions

View File

@ -64,25 +64,8 @@ class FenceGate extends Transparent{
return null;
}
if(Facing::axis($this->facing) === Facing::AXIS_Z){
return new AxisAlignedBB(
0,
0,
0.375,
1,
1.5,
0.625
);
}else{
return new AxisAlignedBB(
0.375,
0,
0,
0.625,
1.5,
1
);
}
$bb = new AxisAlignedBB(0, 0, 0, 1, 1.5, 1);
return $bb->squash(Facing::axis($this->facing), 6 / 16);
}
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{