bench facing fix
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx4G
|
|||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
org.gradle.caching=true
|
org.gradle.caching=true
|
||||||
|
|
||||||
mod_version=4.0.13
|
mod_version=4.0.14
|
||||||
maven_group=earth.terrarium.handcrafted
|
maven_group=earth.terrarium.handcrafted
|
||||||
archives_base_name=handcrafted
|
archives_base_name=handcrafted
|
||||||
|
|
||||||
|
|||||||
@@ -81,9 +81,9 @@ public class BenchBlock extends ModularSeatBlock {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected InteractionResult useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) {
|
protected InteractionResult useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) {
|
||||||
// A backless bench has no canonical facing for the rider. Passing null
|
// Bench models have a backrest, so the rider must inherit the bench facing.
|
||||||
// makes Seat free-rotating, just like the standalone cushion/dining bench.
|
// DiningBenchBlock remains free-rotating because it is the backless variant.
|
||||||
this.sitOn(level, pos, player, null);
|
this.sitOn(level, pos, player, state.getValue(FACING));
|
||||||
return InteractionResult.SUCCESS;
|
return InteractionResult.SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user