Fix FluidStack now being amount-specific in its hashCode() method.
This commit is contained in:
parent
e6ee804686
commit
5baf4605e0
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ public class FluidInput extends MachineInput<FluidInput>
|
||||||
@Override
|
@Override
|
||||||
public int hashIngredients()
|
public int hashIngredients()
|
||||||
{
|
{
|
||||||
return ingredient.hashCode();
|
return ingredient.fluid != null ? ingredient.fluid.hashCode() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -147,7 +147,7 @@ public class PressurizedInput extends MachineInput<PressurizedInput>
|
||||||
@Override
|
@Override
|
||||||
public int hashIngredients()
|
public int hashIngredients()
|
||||||
{
|
{
|
||||||
return StackUtils.hashItemStack(theSolid) << 16 | theFluid.hashCode() << 8 | theGas.hashCode();
|
return StackUtils.hashItemStack(theSolid) << 16 | (theFluid.fluid != null ? theFluid.fluid.hashCode() : 0) << 8 | theGas.hashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue