Skip to content
This repository has been archived by the owner on Oct 20, 2019. It is now read-only.

Commit

Permalink
[TiCon] Fix melting recipe glass mapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
EXTER7 committed Feb 12, 2014
1 parent 39e2592 commit 7da56aa
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/main/java/exter/foundry/integration/ModIntegrationTiCon.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,19 @@ public void OnPostInit()
String mapped = liquid_map.get(result.getFluid().getName());
if(mapped != null)
{
FluidStack mapped_liquid = new FluidStack(
LiquidMetalRegistry.instance.GetFluid(mapped),
result.amount * FoundryRecipes.FLUID_AMOUNT_INGOT / TConstruct.ingotLiquidValue);
FluidStack mapped_liquid;

if(mapped.equals("Glass"))
{
mapped_liquid = new FluidStack(
LiquidMetalRegistry.instance.GetFluid(mapped),
result.amount);
} else
{
mapped_liquid = new FluidStack(
LiquidMetalRegistry.instance.GetFluid(mapped),
result.amount * FoundryRecipes.FLUID_AMOUNT_INGOT / TConstruct.ingotLiquidValue);
}
if(mapped_liquid.amount <= 6000)
{
MeltingRecipeManager.instance.AddRecipe(stack, mapped_liquid);
Expand Down

0 comments on commit 7da56aa

Please sign in to comment.