mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 13:25:16 +00:00
Door: fixed bad rotation when no player is specified
This commit is contained in:
parent
0406c49ba9
commit
65684eec99
@ -127,7 +127,7 @@ abstract class Door extends Transparent{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$ccw = Bearing::toFacing($player instanceof Player ? Bearing::rotate($player->getDirection(), -1) : Facing::EAST);
|
$ccw = Bearing::toFacing($player instanceof Player ? Bearing::rotate($player->getDirection(), -1) : Bearing::EAST);
|
||||||
|
|
||||||
$next = $this->getSide(Facing::opposite($ccw));
|
$next = $this->getSide(Facing::opposite($ccw));
|
||||||
$next2 = $this->getSide($ccw);
|
$next2 = $this->getSide($ccw);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user