Fixed the Electric Blast Furnace not recognizing recipes when there is

more than one Fluid input.

Also added a String representation for GT_FluidStack that was used for
debugging.
This commit is contained in:
Johannes Gäßler 2017-05-06 18:01:06 +02:00
parent e7d8d5ecbe
commit 0aeab34a56
2 changed files with 6 additions and 1 deletions

View file

@ -69,4 +69,9 @@ public class GT_FluidStack extends FluidStack {
} }
return new GT_FluidStack(this); return new GT_FluidStack(this);
} }
@Override
public String toString() {
return String.format("GT_FluidStack: %s x %s, ID:%s", this.amount, this.getFluid().getName(), this.getFluidID());
}
} }

View file

@ -109,7 +109,7 @@ public class GT_MetaTileEntity_ElectricBlastFurnace
} }
} }
} }
FluidStack[] tFluids = Arrays.copyOfRange(tFluidList.toArray(new FluidStack[tInputList.size()]), 0, 1); FluidStack[] tFluids = tFluidList.toArray(new FluidStack[tFluidList.size()]);
if (tInputList.size() > 0) { if (tInputList.size() > 0) {
long tVoltage = getMaxInputVoltage(); long tVoltage = getMaxInputVoltage();
byte tTier = (byte) Math.max(1, GT_Utility.getTier(tVoltage)); byte tTier = (byte) Math.max(1, GT_Utility.getTier(tVoltage));