Skip to content

Commit

Permalink
Fix shearing bug, closes #73
Browse files Browse the repository at this point in the history
  • Loading branch information
yorkeJohn committed Nov 30, 2021
1 parent ca8adb5 commit 7c8da04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 7c8da04

Please sign in to comment.