mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 11:59:11 +00:00
Fix #258 Crash With Thermal Dynamics
This commit is contained in:
1 parent
c0f18b9f6a
commit
9dfe741f38
1 file changed
+4
-1
+4
-1
@@ -37,10 +37,13 @@ public class DistilleryRecipeManager implements IDistilleryManager {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean isValidInputLiquid(final FluidStack fluid) {
|
||||
public static boolean isValidInputLiquid(FluidStack fluid) {
|
||||
for (int i = 0; i < LEVELS; ++i) {
|
||||
Map<Fluid, IDistilleryRecipe> recipesForLevel = recipes.get(i);
|
||||
IDistilleryRecipe recipe = recipesForLevel.get(fluid.getFluid());
|
||||
if(recipe == null){
|
||||
continue;
|
||||
}
|
||||
if (recipe.getInput().isFluidEqual(fluid)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user