package techreborn.events;

import net.minecraft.item.ItemStack;
import net.minecraftforge.event.world.BlockEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import techreborn.items.ItemGems;
import techreborn.utils.OreDictUtils;

/**
 * Created by McKeever on 10/16/2016.
 */
public class BlockBreakHandler {

	@SubscribeEvent
	public void onBlockHarvest(BlockEvent.HarvestDropsEvent event) {
		for (ItemStack ore : event.getDrops()) {
			if (OreDictUtils.isOre(ore, "gemRuby")) {
				event.getDrops().add(ItemGems.getGemByName("redGarnet").copy());
			}
		}
	}
}

package techreborn.events;

import net.minecraft.item.ItemStack;
import net.minecraftforge.event.world.BlockEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import techreborn.items.ItemGems;
import techreborn.utils.OreDictUtils;

/**
 * Created by McKeever on 10/16/2016.
 */
public class BlockBreakHandler {

	@SubscribeEvent
	public void onBlockHarvest(BlockEvent.HarvestDropsEvent event) {
		for (ItemStack ore : event.getDrops()) {
			if (OreDictUtils.isOre(ore, "gemRuby")) {
				event.getDrops().add(ItemGems.getGemByName("red_garnet").copy());
			}
		}
	}
}

Fix #836