Merge pull request #1051 from JohannesGaessler/unstable
[5.09.29] EBF recipe fix followup
This commit is contained in:
commit
5386a69022
3 changed files with 3 additions and 3 deletions
|
@ -90,7 +90,7 @@ public class GT_MetaTileEntity_DistillationTower
|
|||
|
||||
long tVoltage = getMaxInputVoltage();
|
||||
byte tTier = (byte) Math.max(1, GT_Utility.getTier(tVoltage));
|
||||
FluidStack[] tFluids = (FluidStack[]) Arrays.copyOfRange(tFluidList.toArray(new FluidStack[tFluidList.size()]), 0, tFluidList.size());
|
||||
FluidStack[] tFluids = tFluidList.toArray(new FluidStack[tFluidList.size()]);
|
||||
if (tFluids.length > 0) {
|
||||
for(int i = 0;i<tFluids.length;i++){
|
||||
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sDistillationRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], new FluidStack[]{tFluids[i]}, new ItemStack[]{});
|
||||
|
|
|
@ -91,7 +91,7 @@ public class GT_MetaTileEntity_ElectricBlastFurnace
|
|||
}
|
||||
}
|
||||
}
|
||||
ItemStack[] tInputs = Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
|
||||
ItemStack[] tInputs = tInputList.toArray(new ItemStack[tInputList.size()]);
|
||||
|
||||
ArrayList<FluidStack> tFluidList = getStoredFluids();
|
||||
int tFluidList_sS = tFluidList.size();
|
||||
|
|
|
@ -83,7 +83,7 @@ public class GT_MetaTileEntity_ImplosionCompressor
|
|||
}
|
||||
}
|
||||
}
|
||||
ItemStack[] tInputs = (ItemStack[]) Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
|
||||
ItemStack[] tInputs = tInputList.toArray(new ItemStack[tInputList.size()]);
|
||||
if (tInputList.size() > 0) {
|
||||
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sImplosionRecipes.findRecipe(getBaseMetaTileEntity(), false, 9223372036854775807L, null, tInputs);
|
||||
if ((tRecipe != null) && (tRecipe.isRecipeInputEqual(true, null, tInputs))) {
|
||||
|
|
Loading…
Reference in a new issue