add getters back in

This commit is contained in:
MachineMuse 2015-08-29 11:14:34 -06:00
parent 54557e24b9
commit b770400261
3 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,12 @@
package net.machinemuse.powersuits.powermodule.tool;
import net.minecraft.item.Item;
/**
* Created by Claire on 8/29/2015.
*/
public class ChiselGetter1 {
public static Item getChisel() {
return com.cricketcraft.chisel.init.ChiselItems.obsidianChisel;
}
}

View file

@ -0,0 +1,12 @@
package net.machinemuse.powersuits.powermodule.tool;
import net.minecraft.item.Item;
/**
* Created by Claire on 8/29/2015.
*/
public class ChiselGetter2 {
public static Item getChisel() {
return team.chisel.init.ChiselItems.obsidianChisel;
}
}

View file

@ -38,10 +38,10 @@ public class ChiselModule extends PowerModuleBase implements IBlockBreakingModul
addTradeoffProperty("Overclock", CHISEL_HARVEST_SPEED, 22);
try {
ITEM_CHISEL = com.cricketcraft.chisel.init.ChiselItems.obsidianChisel;
ITEM_CHISEL = ChiselGetter1.getChisel();
} catch (NoClassDefFoundError e) {
try {
ITEM_CHISEL = team.chisel.init.ChiselItems.obsidianChisel;
ITEM_CHISEL = ChiselGetter2.getChisel();
} catch (NoClassDefFoundError f) {
MuseLogger.logException("Couldn't get Chisel reference item", f);
}