mirror of
https://github.com/GTNewHorizons/Tainted-Magic.git
synced 2026-11-26 14:53:07 +00:00
Fix shearing bug, closes #73
This commit is contained in:
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));
|
||||
|
||||
Reference in new issue
Block a user