Fixed issue #1457 "Adding biomesoplenty:double_plant:half=lower/upper to shaders block.properties throws ArrayIndexOutOfBoundsException."
This commit is contained in:
parent
6fe3f07f61
commit
ef0125d5c9
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ public class BlockBOPDoublePlant extends BlockBOPDoubleDecoration implements ISh
|
|||
@Override
|
||||
public IBlockState getStateFromMeta(int meta)
|
||||
{
|
||||
return this.getDefaultState().withProperty(HALF, Half.values()[meta >> 3]).withProperty(VARIANT, DoublePlantType.values()[meta & 7]);
|
||||
return this.getDefaultState().withProperty(HALF, Half.values()[(meta >> 3) & 1]).withProperty(VARIANT, DoublePlantType.values()[(meta & 7) & 3]);
|
||||
}
|
||||
@Override
|
||||
public int getMetaFromState(IBlockState state)
|
||||
|
|
Loading…
Reference in a new issue