Merge pull request #882 from GirafiStudios/double_plant_pick

Fixed pick block for flax and eyebulb upper half
This commit is contained in:
Adubbz 2016-11-03 21:17:09 +11:00 committed by GitHub
commit 3d0673dfe0

View file

@ -236,9 +236,9 @@ public class BlockBOPDoublePlant extends BlockBOPDoubleDecoration implements ISh
{
case TALL_CATTAIL:
return new ItemStack(BOPBlocks.plant_1, 1, BlockBOPPlant.paging.getIndex(BOPPlants.CATTAIL));
default:
return new ItemStack(this, 1, this.getMetaFromState(world.getBlockState(pos)));
return new ItemStack(this, 1, ((DoublePlantType) state.getValue(VARIANT)).ordinal());
}
}