/*
 * Decompiled with CFR 0_110.
 * 
 * Could not load the following classes:
 *  net.minecraft.item.Item
 *  net.minecraft.item.Item$ToolMaterial
 *  net.minecraft.item.ItemPickaxe
 */
package com.hiagg.item;

import java.util.ArrayList;
import java.util.Random;

import net.minecraft.block.Block;
import net.minecraft.block.BlockOre;
import net.minecraft.client.Minecraft;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemPickaxe;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.world.World;

public class DupePick extends ItemPickaxe {
	private World worldObj;
	private Item itemObj;
	
	
    protected DupePick(Item.ToolMaterial Debug) {
        super(Debug);
        this.setTextureName("hiaggium:DupePick");
    }
    
    @Override
    public boolean onBlockStartBreak(ItemStack itemstack, int i, int j, int k, EntityPlayer player) {
    	worldObj = player.worldObj;
    	itemObj = Item.getItemFromBlock(worldObj.getBlock(i, j, k));
    	//Add check for full inv
    	if(player.inventory.getFirstEmptyStack() == -1) {
    	player.inventory.addItemStackToInventory(new ItemStack(itemObj, 5)); //CRASHES PLAYER ON FULL INV!
    	worldObj.setBlock(i, j, k, Blocks.air);
    	}
    	else {
    		worldObj.setBlock(i, j, k, Blocks.bedrock);
    	}
    	return true;
    }

}


@@ -1313,41 +1313,21 @@
    %09
-//Add check for full inv%0A    %09if(
+int eStack = 
 play
@@ -1363,14 +1363,59 @@
 ck()
- == -1
+;%0A    %09//Add check for full inv%0A    %09if(eStack %3E= 0
 ) %7B%0A
@@ -1419,16 +1419,17 @@
  %7B%0A    %09
+%09
 player.i
@@ -1441,32 +1441,32 @@
 ory.
-addItemStackToInventory(
+mainInventory%5BeStack%5D = 
 new 
@@ -1486,17 +1486,16 @@
 mObj, 5)
-)
 ; //CRAS
@@ -1519,24 +1519,32 @@
 L INV!%0A    %09
+%09player.
 worldObj.set
@@ -1577,22 +1577,17 @@
 ;%0A    %09%7D
-%0A    %09
+ 
 else %7B%0A 
@@ -1591,16 +1591,23 @@
 %7B%0A    %09%09
+player.
 worldObj

Fix DupePick (maybe)