Door: fixed bad rotation when no player is specified

This commit is contained in:
Dylan K. Taylor 2018-09-13 18:36:50 +01:00
parent 0406c49ba9
commit 65684eec99

View File

@ -127,7 +127,7 @@ abstract class Door extends Transparent{
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));
$next2 = $this->getSide($ccw);