diff --git a/src/main/java/biomesoplenty/common/block/BlockBOPFlower.java b/src/main/java/biomesoplenty/common/block/BlockBOPFlower.java index 432104a3c..0206beab3 100644 --- a/src/main/java/biomesoplenty/common/block/BlockBOPFlower.java +++ b/src/main/java/biomesoplenty/common/block/BlockBOPFlower.java @@ -303,12 +303,17 @@ public class BlockBOPFlower extends BlockBOPDecoration implements IShearable public void dropBlockAsItemWithChance(World world, BlockPos pos, IBlockState state, float chance, int fortune) { EntityPlayer player = this.harvesters.get(); - boolean usingShears = (player.getCurrentEquippedItem() != null && player.getCurrentEquippedItem().getItem() instanceof ItemShears); - - //Player must use shears when flowerDropsNeedShears is enabled - if (GameplayConfigurationHandler.flowerDropsNeedShears && !usingShears) - return; + //Only check if shears are being using if the appropriate option is enabled, and it's a player harvesting this block + if (GameplayConfigurationHandler.flowerDropsNeedShears && player != null) + { + boolean usingShears = (player.getCurrentEquippedItem() != null && player.getCurrentEquippedItem().getItem() instanceof ItemShears); + + //Player must use shears when flowerDropsNeedShears is enabled + if (!usingShears) + return; + } + super.dropBlockAsItemWithChance(world, pos, state, chance, fortune); }