dining bench facing fix

This commit is contained in:
Darto KLoning
2026-10-03 16:02:19 +07:00
parent 2132d9d7f3
commit cae5b33c3b
9 changed files with 391 additions and 531 deletions
@@ -68,7 +68,11 @@ public class DiningBenchBlock extends HorizontalDirectionalBlock implements Sitt
@Override
protected InteractionResult useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) {
this.sitOn(level, pos, player, null);
// A dining bench has no backrest, so its sitting direction should be
// chosen by the player at the moment they sit rather than by the
// bench block's placement facing. This also avoids the old null/free-
// rotation seat starting at the same world yaw every time.
this.sitOn(level, pos, player, player.getDirection());
return InteractionResult.SUCCESS;
}