package com.witchworks.common.core.event;

import com.witchworks.common.item.ModItems;
import net.minecraft.block.BlockNewLeaf;
import net.minecraft.block.BlockPlanks;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraftforge.event.world.BlockEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

/**
 * Created by Joseph on 9/24/2017.
 */
public class HarvestDropsEvent {

	@SubscribeEvent
	@Mod.EventHandler
	public void onHarvestBlock(BlockEvent.HarvestDropsEvent event) {
		if ((event.getState().getBlock() == Blocks.LEAVES2.getDefaultState().withProperty(BlockNewLeaf.VARIANT, BlockPlanks.EnumType.DARK_OAK) && event.getWorld().rand.nextInt(100) < 55)) {
			event.getDrops().clear();
			event.getDrops().add(new ItemStack(ModItems.oak_apple_gall, 2));
		}
	}
}
@@ -84,89 +84,8 @@
 ms;%0A
-import net.minecraft.block.BlockNewLeaf;%0Aimport net.minecraft.block.BlockPlanks;%0A
 impo
@@ -545,92 +545,8 @@
 VES2
-.getDefaultState().withProperty(BlockNewLeaf.VARIANT, BlockPlanks.EnumType.DARK_OAK)
  && 
@@ -681,17 +681,17 @@
 e_gall, 
-2
+1
 ));%0A%09%09%7D%0A

Revert "Oak apple logic now works on dark oak leaves only"