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
|
||||
public int hashIngredients()
|
||||
{
|
||||
return ingredient.hashCode();
|
||||
return ingredient.fluid != null ? ingredient.fluid.hashCode() : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -147,7 +147,7 @@ public class PressurizedInput extends MachineInput<PressurizedInput>
|
|||
@Override
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue