Fix Iguana Tweaks fucking everything up because apparently it -needs- setHarvestLevel to be called even though there is getHarvestLevel() which I have made to work.

I hate Iguana Tweaks. It breaks everything and has shit mechanics to begin with.
Closes #34
This commit is contained in:
Ellpeck 2015-12-30 19:34:15 +01:00
parent c0a90c7ed4
commit f83061a00e

View file

@ -53,6 +53,7 @@ import java.util.Set;
public class ItemDrill extends ItemEnergy{
private static final int ENERGY_USE = 100;
private static final int HARVEST_LEVEL = 4;
@SideOnly(Side.CLIENT)
private IIcon[] allDemDamnIconsMaan;
@ -60,6 +61,15 @@ public class ItemDrill extends ItemEnergy{
super(500000, 5000, name);
this.setMaxDamage(0);
this.setHasSubtypes(true);
//For Iguana Tweaks author
//
//You know what? It's bad, when you know
//There is already getHarvestLevel(), yo
//But then Iguana comes and fucks with you
//So that you need to use setHarvestLevel() too.
this.setHarvestLevel("shovel", HARVEST_LEVEL);
this.setHarvestLevel("pickaxe", HARVEST_LEVEL);
}
@Override
@ -281,7 +291,7 @@ public class ItemDrill extends ItemEnergy{
@Override
public int getHarvestLevel(ItemStack stack, String toolClass){
return 4;
return HARVEST_LEVEL;
}
/**