add getters back in
This commit is contained in:
parent
54557e24b9
commit
b770400261
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue