Skip to content

Commit

Permalink
Lava lasts a tad longer. Turns out smelteries are consuming 1.5x as m…
Browse files Browse the repository at this point in the history
…uch lava as the old smelteries! It's only 1.25 as much now.

To be exact: 15 mb are used every 4 seconds
  • Loading branch information
bonii-xx committed Oct 7, 2014
1 parent 49d804d commit 9cb2e27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tconstruct/smeltery/TinkerSmeltery.java
Expand Up @@ -1077,11 +1077,11 @@ protected void addRecipesForBasinCasting ()
protected static void addRecipesForSmeltery ()
{
// Smeltery fuels
Smeltery.addSmelteryFuel(FluidRegistry.LAVA, 1300, 10);
Smeltery.addSmelteryFuel(FluidRegistry.LAVA, 1300, 12); // lava lasts 4 seconds per 15 mb
// register pyrotheum if it's present
Fluid pyrotheum = FluidRegistry.getFluid("pyrotheum");
if (pyrotheum != null)
Smeltery.addSmelteryFuel(pyrotheum, 5000, 9);
Smeltery.addSmelteryFuel(pyrotheum, 5000, 9); // pyrotheum lasts 3 seconds per 15 mb

// BLOOD FOR THE BLOOD GOD
if (TinkerWorld.meatBlock != null)
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java
Expand Up @@ -304,10 +304,10 @@ public void updateEntity ()
if (!validStructure)
checkValidPlacement();

if (useTime > 0 && inUse)
if (useTime > 0)
useTime -= 3;

if (validStructure && useTime <= 0)
if (validStructure && useTime <= 0 && inUse)
{
updateFuelGague();
}
Expand Down Expand Up @@ -600,7 +600,7 @@ public void updateFuelGague ()
{
// drain actual liquid, non simulated
liquid = tankContainer.drain(ForgeDirection.DOWN, 15, true);
useTime += Smeltery.getFuelDuration(liquid.getFluid());
useTime += (int)((float)Smeltery.getFuelDuration(liquid.getFluid())*15f/(float)liquid.amount);
internalTemp = Smeltery.getFuelPower(liquid.getFluid());

// update fuel display
Expand Down

0 comments on commit 9cb2e27

Please sign in to comment.