From cf39e12de87a85ebde6c3300fe59f96ce5c705ff Mon Sep 17 00:00:00 2001 From: GirafiStudios Date: Wed, 2 Nov 2016 21:21:11 +0100 Subject: [PATCH] Fixed pick block for flax and eyebulb upper half --- .../java/biomesoplenty/common/block/BlockBOPDoublePlant.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/biomesoplenty/common/block/BlockBOPDoublePlant.java b/src/main/java/biomesoplenty/common/block/BlockBOPDoublePlant.java index 4cb19c74c..57da4650d 100644 --- a/src/main/java/biomesoplenty/common/block/BlockBOPDoublePlant.java +++ b/src/main/java/biomesoplenty/common/block/BlockBOPDoublePlant.java @@ -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()); } }