mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Fix FluidStack now being amount-specific in its hashCode() method.
This commit is contained in:
1 parent
e6ee804686
commit
5baf4605e0
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user