mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-09 07:15:11 -04:00
Updated Forge, unfucked metadata on rotatables, yay me. Closes #1600.
This commit is contained in:
parent
3091240c9e
commit
7341c20b55
@ -1,5 +1,5 @@
|
||||
minecraft.version=1.8.9
|
||||
forge.version=11.15.0.1663
|
||||
forge.version=11.15.0.1684
|
||||
|
||||
oc.version=1.5.21
|
||||
oc.subversion=dev
|
||||
|
@ -29,9 +29,9 @@ class Keyboard extends SimpleBlock(Material.rock) {
|
||||
|
||||
override def createBlockState(): BlockState = new BlockState(this, PropertyRotatable.Pitch, PropertyRotatable.Yaw)
|
||||
|
||||
override def getMetaFromState(state: IBlockState): Int = (state.getValue(PropertyRotatable.Pitch).ordinal() << 8) | state.getValue(PropertyRotatable.Yaw).getHorizontalIndex
|
||||
override def getMetaFromState(state: IBlockState): Int = (state.getValue(PropertyRotatable.Pitch).ordinal() << 2) | state.getValue(PropertyRotatable.Yaw).getHorizontalIndex
|
||||
|
||||
override def getStateFromMeta(meta: Int): IBlockState = getDefaultState.withProperty(PropertyRotatable.Pitch, EnumFacing.getFront(meta >> 8)).withProperty(PropertyRotatable.Yaw, EnumFacing.getHorizontal(meta & 0xF))
|
||||
override def getStateFromMeta(meta: Int): IBlockState = getDefaultState.withProperty(PropertyRotatable.Pitch, EnumFacing.getFront(meta >> 2)).withProperty(PropertyRotatable.Yaw, EnumFacing.getHorizontal(meta & 0x3))
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
|
@ -38,9 +38,9 @@ class Screen(val tier: Int) extends RedstoneAware {
|
||||
|
||||
override def createBlockState(): BlockState = new ExtendedBlockState(this, Array(PropertyRotatable.Pitch, PropertyRotatable.Yaw), Array(PropertyTile.Tile))
|
||||
|
||||
override def getMetaFromState(state: IBlockState): Int = (state.getValue(PropertyRotatable.Pitch).ordinal() << 8) | state.getValue(PropertyRotatable.Yaw).getHorizontalIndex
|
||||
override def getMetaFromState(state: IBlockState): Int = (state.getValue(PropertyRotatable.Pitch).ordinal() << 2) | state.getValue(PropertyRotatable.Yaw).getHorizontalIndex
|
||||
|
||||
override def getStateFromMeta(meta: Int): IBlockState = getDefaultState.withProperty(PropertyRotatable.Pitch, EnumFacing.getFront(meta >> 8)).withProperty(PropertyRotatable.Yaw, EnumFacing.getHorizontal(meta & 0xF))
|
||||
override def getStateFromMeta(meta: Int): IBlockState = getDefaultState.withProperty(PropertyRotatable.Pitch, EnumFacing.getFront(meta >> 2)).withProperty(PropertyRotatable.Yaw, EnumFacing.getHorizontal(meta & 0x3))
|
||||
|
||||
override def getExtendedState(state: IBlockState, world: IBlockAccess, pos: BlockPos): IBlockState =
|
||||
(state, world.getTileEntity(pos)) match {
|
||||
|
Loading…
x
Reference in New Issue
Block a user