Merge pull request #676 from GirafiStudios/BOP-1.8.9-3.0.x
Made Flax require shears to drop.
This commit is contained in:
commit
1a85b43159
1 changed files with 7 additions and 2 deletions
|
@ -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,7 +231,8 @@ public class BlockBOPDoublePlant extends BlockBOPDoubleDecoration implements ISh
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<ItemStack> getLowerShearDrops(ItemStack item, IBlockAccess world, BlockPos lowerPos, IBlockState lowerState, int fortune) {
|
||||
public List<ItemStack> getLowerShearDrops(ItemStack item, IBlockAccess world, BlockPos lowerPos, IBlockState lowerState, int fortune)
|
||||
{
|
||||
// start with an empty stack
|
||||
List<ItemStack> ret = new java.util.ArrayList<ItemStack>();
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue