Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.util.ArrayList;
import java.util.List;

import gregtech.common.blocks.GTBlockOre;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.enchantment.EnchantmentHelper;
Expand All @@ -29,6 +28,7 @@
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gregtech.common.blocks.GTBlockOre;

public class BoundPickaxe extends ItemPickaxe implements IBindable {

Expand Down Expand Up @@ -121,10 +121,15 @@ public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, Enti
} else {
ArrayList<ItemStack> itemDropList;
if (AlchemicalWizardry.isGregTechLoaded && block instanceof GTBlockOre) {
itemDropList = ((GTBlockOre) block)
.getDropsForPlayer(par2World, posX + i, posY + j, posZ + k, meta, fortuneLvl, par3EntityPlayer);
}
else{
itemDropList = ((GTBlockOre) block).getDropsForPlayer(
par2World,
posX + i,
posY + j,
posZ + k,
meta,
fortuneLvl,
par3EntityPlayer);
} else {
itemDropList = block
.getDrops(par2World, posX + i, posY + j, posZ + k, meta, fortuneLvl);
}
Expand Down