From f83061a00e6eb2422f2b2b3ba57dcbcc2c00a04e Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 30 Dec 2015 19:34:15 +0100 Subject: [PATCH] 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 --- .../ellpeck/actuallyadditions/items/ItemDrill.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java b/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java index 7de209878..fcf942ab6 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java @@ -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; } /**