Fix #258 Crash With Thermal Dynamics

This commit is contained in:
Nedelosk committed 2017-08-12 16:45:52 +02:00
1 parent c0f18b9f6a
commit 9dfe741f38
1 file changed
+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;
}