Fixed refinery recipes not working.
This commit is contained in:
parent
604fa62374
commit
a9674e6c24
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue