Tweak terminal placement behavior
This commit is contained in:
parent
89e91796a5
commit
1c405f8623
|
@ -55,8 +55,7 @@ class TerminalBlock: DeviceBlock<TerminalBlockEntity>(
|
|||
}
|
||||
|
||||
override fun getPlacementState(context: ItemPlacementContext): BlockState {
|
||||
val facing = if (context.player?.isSneaking == true) context.side else context.playerFacing.opposite
|
||||
return defaultState.with(FACING, facing)
|
||||
return defaultState.with(FACING, context.playerLookDirection.opposite)
|
||||
}
|
||||
|
||||
override fun createBlockEntity(world: BlockView) = TerminalBlockEntity()
|
||||
|
|
Loading…
Reference in New Issue