EndRod: fix BB rotation on X/Z axes

this was very apparent with the new code, less so with the magic meta values...
This commit is contained in:
Dylan K. Taylor 2018-09-27 02:36:39 -04:00
parent ac3509aa3d
commit e6a1398992

View File

@ -95,15 +95,6 @@ class EndRod extends Flowable{
1 - $width 1 - $width
); );
case Facing::AXIS_Z: case Facing::AXIS_Z:
return new AxisAlignedBB(
0,
$width,
$width,
1,
1 - $width,
1 - $width
);
case Facing::AXIS_X:
return new AxisAlignedBB( return new AxisAlignedBB(
$width, $width,
$width, $width,
@ -112,6 +103,16 @@ class EndRod extends Flowable{
1 - $width, 1 - $width,
1 1
); );
case Facing::AXIS_X:
return new AxisAlignedBB(
0,
$width,
$width,
1,
1 - $width,
1 - $width
);
} }
return null; return null;