Skip to content

Commit

Permalink
Fix bedaura not breaking beds
Browse files Browse the repository at this point in the history
This has been broken for over a year πŸ’€
  • Loading branch information
Wide-Cat authored Aug 9, 2023
1 parent ea89e35 commit bad942f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ private void breakBed(BlockPos pos) {
boolean wasSneaking = mc.player.isSneaking();
if (wasSneaking) mc.player.setSneaking(false);

mc.interactionManager.interactBlock(mc.player, Hand.OFF_HAND, new BlockHitResult(mc.player.getPos(), Direction.UP, pos, false));
mc.interactionManager.interactBlock(mc.player, Hand.OFF_HAND, new BlockHitResult(Vec3d.ofCenter(pos), Direction.UP, pos, false));

mc.player.setSneaking(wasSneaking);
}
Expand Down

0 comments on commit bad942f

Please sign in to comment.