dining bench facing fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user