Fixed refinery recipes not working.

This commit is contained in:
SirSengir 2012-07-14 09:18:04 +02:00
parent 604fa62374
commit a9674e6c24

View file

@ -60,11 +60,12 @@ public class RefineryRecipe {
if(liquid1 != null) { if(liquid1 != null) {
if(liquid2 == null) if(liquid2 == null || liquid2.itemID <= 0) {
return liquid1.isLiquidEqual(ingredient1) || liquid1.isLiquidEqual(ingredient2); return liquid1.isLiquidEqual(ingredient1) || liquid1.isLiquidEqual(ingredient2);
else } else {
return (liquid1.isLiquidEqual(ingredient1) && liquid2.isLiquidEqual(ingredient2)) return (liquid1.isLiquidEqual(ingredient1) && liquid2.isLiquidEqual(ingredient2))
|| (liquid2.isLiquidEqual(ingredient1) && liquid1.isLiquidEqual(ingredient2)); || (liquid2.isLiquidEqual(ingredient1) && liquid1.isLiquidEqual(ingredient2));
}
} else } else
return liquid2.isLiquidEqual(ingredient1) || liquid2.isLiquidEqual(ingredient2); return liquid2.isLiquidEqual(ingredient1) || liquid2.isLiquidEqual(ingredient2);