Skip to content

Commit

Permalink
Let gears be molten down to liquids too!
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Mar 3, 2015
1 parent d2bd107 commit 3b7af71
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/tconstruct/plugins/gears/TinkerGears.java
Expand Up @@ -13,6 +13,8 @@
import net.minecraftforge.oredict.OreDictionary;
import tconstruct.TConstruct;
import tconstruct.library.TConstructRegistry;
import tconstruct.library.crafting.FluidType;
import tconstruct.library.crafting.Smeltery;
import tconstruct.smeltery.TinkerSmeltery;
import tconstruct.tools.items.Pattern;

Expand Down Expand Up @@ -68,7 +70,14 @@ public void postInit(FMLPostInitializationEvent event) {
if(fluid != null) {
ItemStack gear = gears.get(0);
FluidStack liquid = new FluidStack(fluid.getID(), TConstruct.ingotLiquidValue*4);
// gear casting
TConstructRegistry.getTableCasting().addCastingRecipe(gear, liquid, cast, 55);
// and melting it back
FluidType ft = FluidType.getFluidType(fluid);
if(ft != null)
Smeltery.addMelting(ft, gear, 100, TConstruct.ingotLiquidValue*4);
else
Smeltery.addMelting(gear, TinkerSmeltery.glueBlock, 0, 100, liquid);
}
}
}
Expand Down

0 comments on commit 3b7af71

Please sign in to comment.