mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Entity: add getHorizontalFacing(), clean up some boilerplate code
This commit is contained in:
@ -110,7 +110,7 @@ abstract class Door extends Transparent{
|
||||
}
|
||||
|
||||
if($player !== null){
|
||||
$this->facing = Bearing::toFacing($player->getDirection());
|
||||
$this->facing = $player->getHorizontalFacing();
|
||||
}
|
||||
|
||||
$next = $this->getSide(Facing::rotate($this->facing, Facing::AXIS_Y, false));
|
||||
|
Reference in New Issue
Block a user