mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Create a config option for gold cast recipes
If "Remove Gold Cast Recipes" config setting is enabled, it will force the use of the only other material to make casts: aluminum. All gold casts are back if set to false, of course.
This commit is contained in:
1 parent
9ea7a0e60f
commit
a4215d76b4
6 files changed
+59
-12
No files matched your search
@@ -17,6 +17,7 @@ import tconstruct.library.crafting.FluidType;
|
||||
import tconstruct.library.crafting.Smeltery;
|
||||
import tconstruct.smeltery.TinkerSmeltery;
|
||||
import tconstruct.tools.items.Pattern;
|
||||
import tconstruct.util.config.PHConstruct;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
@@ -38,7 +39,8 @@ public class TinkerGears {
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
ItemStack cast = new ItemStack(gearCast);
|
||||
FluidStack aluCastLiquid = new FluidStack(TinkerSmeltery.moltenAlubrassFluid, TConstruct.ingotLiquidValue);
|
||||
FluidStack goldCastLiquid = new FluidStack(TinkerSmeltery.moltenGoldFluid, TConstruct.ingotLiquidValue*2);
|
||||
if(!PHConstruct.removeGoldCastRecipes)
|
||||
FluidStack goldCastLiquid = new FluidStack(TinkerSmeltery.moltenGoldFluid, TConstruct.ingotLiquidValue*2);
|
||||
|
||||
// find all gears in the registry
|
||||
for(String oreName : OreDictionary.getOreNames()) {
|
||||
@@ -51,7 +53,8 @@ public class TinkerGears {
|
||||
if(!oreName.equals("gearWood")) {
|
||||
for(ItemStack g : gears) {
|
||||
TConstructRegistry.getTableCasting().addCastingRecipe(cast, aluCastLiquid, g, false, 50);
|
||||
TConstructRegistry.getTableCasting().addCastingRecipe(cast, goldCastLiquid, g, false, 50);
|
||||
if(!PHConstruct.removeGoldCastRecipes)
|
||||
TConstructRegistry.getTableCasting().addCastingRecipe(cast, goldCastLiquid, g, false, 50);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user