mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
Painting: use Facing::rotate()
This commit is contained in:
parent
2b8405e6ee
commit
8ad57f7ca0
@ -240,7 +240,7 @@ class Painting extends Entity{
|
||||
$horizontalStart = (int) (ceil($width / 2) - 1);
|
||||
$verticalStart = (int) (ceil($height / 2) - 1);
|
||||
|
||||
$rotatedFace = Bearing::toFacing(Bearing::rotate(Bearing::fromFacing($facing), -1));
|
||||
$rotatedFace = Facing::rotate($facing, Facing::AXIS_Y, false);
|
||||
|
||||
$oppositeSide = Facing::opposite($facing);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user