Skip to content

Commit

Permalink
TE Support: Pouring ender from a smeltery into a bucket now also retu…
Browse files Browse the repository at this point in the history
…rns the TE-Bucket, not the tinker one. #1088
  • Loading branch information
bonii-xx committed Oct 14, 2014
1 parent 033c635 commit acc8eaf
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/tconstruct/smeltery/TinkerSmeltery.java
Expand Up @@ -940,10 +940,18 @@ private void addRecipesForTableCasting ()
// Buckets
ItemStack bucket = new ItemStack(Items.bucket);

Item thermalBucket = GameRegistry.findItem("ThermalFoundation", "bucket");

for (int sc = 0; sc < 26; sc++)
{
if (TinkerSmeltery.fluids[sc] != null)
tableCasting.addCastingRecipe(new ItemStack(TinkerSmeltery.buckets, 1, sc), new FluidStack(TinkerSmeltery.fluids[sc], FluidContainerRegistry.BUCKET_VOLUME), bucket, true, 10);
if (TinkerSmeltery.fluids[sc] != null) {
// TE support
if(fluids[sc] == TinkerSmeltery.moltenEnderFluid && thermalBucket != null)
// bucket of resonant ender instead of liquified ender
tableCasting.addCastingRecipe(new ItemStack(thermalBucket, 1, 2), new FluidStack(TinkerSmeltery.fluids[sc], FluidContainerRegistry.BUCKET_VOLUME), bucket, true, 10);
else
tableCasting.addCastingRecipe(new ItemStack(TinkerSmeltery.buckets, 1, sc), new FluidStack(TinkerSmeltery.fluids[sc], FluidContainerRegistry.BUCKET_VOLUME), bucket, true, 10);
}
}

// Clear glass pane casting
Expand Down

0 comments on commit acc8eaf

Please sign in to comment.