From bd6c4c1fc5ef6ea7b2ebb1084d7b1947ecc818bd Mon Sep 17 00:00:00 2001 From: GirafiStudios Date: Sun, 14 Feb 2016 07:17:36 +0100 Subject: [PATCH] Made Flax require shears to drop. --- .../biomesoplenty/common/block/BlockBOPDoublePlant.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/biomesoplenty/common/block/BlockBOPDoublePlant.java b/src/main/java/biomesoplenty/common/block/BlockBOPDoublePlant.java index 93697f645..befb83cf0 100644 --- a/src/main/java/biomesoplenty/common/block/BlockBOPDoublePlant.java +++ b/src/main/java/biomesoplenty/common/block/BlockBOPDoublePlant.java @@ -210,6 +210,8 @@ public class BlockBOPDoublePlant extends BlockBOPDoubleDecoration implements ISh DoublePlantType type = (DoublePlantType) lowerState.getValue(VARIANT); switch (type) { + case FLAX: + break; case TALL_CATTAIL: ret.add(BlockBOPPlant.paging.getVariantItem(BOPPlants.CATTAIL)); break; @@ -229,10 +231,11 @@ public class BlockBOPDoublePlant extends BlockBOPDoubleDecoration implements ISh } @Override - public List getLowerShearDrops(ItemStack item, IBlockAccess world, BlockPos lowerPos, IBlockState lowerState, int fortune) { + public List getLowerShearDrops(ItemStack item, IBlockAccess world, BlockPos lowerPos, IBlockState lowerState, int fortune) + { // start with an empty stack List ret = new java.util.ArrayList(); - + // add items based on the VARIANT // note that the sheared items are dropped in addition to regular drops // since the default in getLowerDrops is to drop the (lower) block, the default here is to drop nothing (so we don't have a duplicate) @@ -241,6 +244,8 @@ public class BlockBOPDoublePlant extends BlockBOPDoubleDecoration implements ISh DoublePlantType type = (DoublePlantType) lowerState.getValue(VARIANT); switch (type) { + case FLAX: + ret.add(this.getVariantItem(type)); default: break; }