mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Fixed mess of rotations being inverted
This commit is contained in:
@ -95,7 +95,7 @@ class Anvil extends Fallable{
|
||||
}
|
||||
|
||||
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{
|
||||
$direction = $player !== null ? Bearing::rotate($player->getDirection(), -1) : 0;
|
||||
$direction = $player !== null ? Bearing::rotate($player->getDirection(), 1) : 0;
|
||||
$this->meta = $this->getVariant() | $direction;
|
||||
return parent::place($item, $blockReplace, $blockClicked, $face, $clickVector, $player);
|
||||
}
|
||||
|
Reference in New Issue
Block a user