Skip to content

Commit

Permalink
Fixed anvil placing rotation. (pmmp#6375)
Browse files Browse the repository at this point in the history
Co-authored-by: IvanCraft623 <[email protected]>
  • Loading branch information
ipad54 and IvanCraft623 authored Aug 13, 2024
1 parent d077bda commit 585dc83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/block/Anvil.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player

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);
}
Expand Down

0 comments on commit 585dc83

Please sign in to comment.