mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Make use of Facing::rotateY() to reduce boilerplate
This commit is contained in:
@ -240,7 +240,7 @@ class Painting extends Entity{
|
||||
$horizontalStart = (int) (ceil($width / 2) - 1);
|
||||
$verticalStart = (int) (ceil($height / 2) - 1);
|
||||
|
||||
$rotatedFace = Facing::rotate($facing, Facing::AXIS_Y, false);
|
||||
$rotatedFace = Facing::rotateY($facing, false);
|
||||
|
||||
$oppositeSide = Facing::opposite($facing);
|
||||
|
||||
|
Reference in New Issue
Block a user