Fixed anvil placing rotation. (#6375)

Co-authored-by: IvanCraft623 <57236932+IvanCraft623@users.noreply.github.com>
This commit is contained in:
ipad54 2024-08-13 18:19:07 +03:00 committed by GitHub
parent d077bda30c
commit 585dc835e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,7 +91,7 @@ class Anvil extends Transparent implements Fallable{
public function place(BlockTransaction $tx, Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
if($player !== null){
$this->facing = Facing::rotateY($player->getHorizontalFacing(), true);
$this->facing = Facing::rotateY($player->getHorizontalFacing(), false);
}
return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player);
}