From 7c8da0456c9fa06003a16c8843cae743132c21b0 Mon Sep 17 00:00:00 2001 From: John Yorke Date: Tue, 30 Nov 2021 15:14:22 -0400 Subject: [PATCH] Fix shearing bug, closes #73 --- .../java/taintedmagic/common/blocks/BlockNightshadeBush.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/taintedmagic/common/blocks/BlockNightshadeBush.java b/src/main/java/taintedmagic/common/blocks/BlockNightshadeBush.java index 54f82e24..f662fa7f 100644 --- a/src/main/java/taintedmagic/common/blocks/BlockNightshadeBush.java +++ b/src/main/java/taintedmagic/common/blocks/BlockNightshadeBush.java @@ -65,7 +65,7 @@ public int getFireSpreadSpeed (final IBlockAccess world, final int x, final int @SubscribeEvent public void onBreak (final BlockEvent.HarvestDropsEvent event) { - if (event.harvester != null && event.harvester.getHeldItem() != null + if (event.block instanceof BlockNightshadeBush && event.harvester != null && event.harvester.getHeldItem() != null && event.harvester.getHeldItem().getItem() instanceof ItemShears) { event.drops.clear(); event.drops.add(new ItemStack(BlockRegistry.BlockNightshadeBush, 1, 0));