mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +00:00
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:
parent
ac3509aa3d
commit
e6a1398992
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user