Implement simple hash based equals in Fluid ContainerKey.
This commit is contained in:
parent
534b241e9f
commit
d97ec2763c
1 changed files with 5 additions and 0 deletions
|
@ -54,6 +54,11 @@ public abstract class FluidContainerRegistry
|
||||||
code = 31*code + fluid.fluidID;
|
code = 31*code + fluid.fluidID;
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o)
|
||||||
|
{
|
||||||
|
return o != null && o.hashCode() == hashCode();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Map<ContainerKey, FluidContainerData> containerFluidMap = Maps.newHashMap();
|
private static Map<ContainerKey, FluidContainerData> containerFluidMap = Maps.newHashMap();
|
||||||
|
|
Loading…
Reference in a new issue