Skip to content

Commit

Permalink
Added hopper to accurateBlockPlacement, carpet client can't rotate it…
Browse files Browse the repository at this point in the history
…, but tweakeroo can
  • Loading branch information
Dioswilson committed Jan 31, 2022
1 parent 3b71a9c commit 0b3e5af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions carpetmodSrc/carpet/helpers/BlockRotator.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ else if (block instanceof BlockDoor)
.withProperty(BlockDoor.HINGE, hitX % 100 < 10 ? BlockDoor.EnumHingePosition.LEFT : BlockDoor.EnumHingePosition.RIGHT)
.withProperty(BlockDoor.OPEN, Boolean.valueOf(hitX > 100));
}
else if (block instanceof BlockHopper) {
return block.getDefaultState()
.withProperty(BlockHopper.FACING,EnumFacing.byIndex((int)hitX - 2));
}
return null;
}

Expand Down

0 comments on commit 0b3e5af

Please sign in to comment.