Fix shearing bug, closes #73

This commit is contained in:
John Yorke committed 2021-11-30 15:14:22 -04:00
1 parent ca8adb59bd
commit 7c8da0456c
1 file changed
+1 -1
@@ -65,7 +65,7 @@ public class BlockNightshadeBush extends BlockBush {
@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));