Prerelease fixes
This commit is contained in:
parent
a1d8d5f328
commit
1f67bf90ae
3 changed files with 14 additions and 3 deletions
|
@ -414,7 +414,10 @@ public class GregTech_API {
|
|||
} catch(Throwable e) {/*Do nothing*/}
|
||||
try {
|
||||
return (GT_Tool_Item)Class.forName("gregtechmod.api.items.GT_Crowbar_Item").getConstructors()[0].newInstance(aUnlocalized, aMaxDamage, aEntityDamage);
|
||||
} catch(Throwable e) {/*Do nothing*/}
|
||||
} catch(Throwable e) {
|
||||
GT_Log.log.error("Unable to construct Crowbar!");
|
||||
GT_Log.log.catching(e);
|
||||
}
|
||||
return new gregtechmod.api.items.GT_Tool_Item(aUnlocalized, "item.bug.tooltip", aMaxDamage, aEntityDamage, false);
|
||||
}
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ import gregtechmod.api.util.GT_Utility;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
@ -23,8 +24,10 @@ public class GT_Crowbar_Item extends GT_Tool_Item {
|
|||
addToBlockList(Blocks.golden_rail);
|
||||
addToBlockList(Blocks.detector_rail);
|
||||
addToBlockList(Blocks.activator_rail);
|
||||
if (Loader.isModLoaded("Railcraft")) {
|
||||
addToBlockList(GT_ModHandler.getRCItem("track.boarding", 1));
|
||||
addToBlockList(GT_ModHandler.getRCItem("track.elevator", 1));
|
||||
}
|
||||
setUsageAmounts(1, 2, 1);
|
||||
}
|
||||
|
||||
|
|
|
@ -78,6 +78,11 @@ public class ProcessingDust implements IOreRecipeRegistrator {
|
|||
.input(aMaterial == Materials.Milk ? GT_Items.Cell_Water.get(1) : GT_Items.Cell_Empty.get(1))
|
||||
.output(GT_OreDictUnificator.get(OrePrefixes.cell, aMaterial, 1))
|
||||
.buildAndRegister();
|
||||
if (aMaterial != Materials.Milk) RecipeMaps.CANINNING.factory().EUt(1).duration(100)
|
||||
.input(OrePrefixes.cell, aMaterial)
|
||||
.output(GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1))
|
||||
.output(GT_OreDictUnificator.get(GT_Items.Cell_Empty.get(1)))
|
||||
.buildAndRegister();
|
||||
}
|
||||
|
||||
if (aMaterial.mMaterialList.size() > 0 && (aMaterial.mExtraData & 3) != 0) {
|
||||
|
|
Loading…
Reference in a new issue