Implement simple hash based equals in Fluid ContainerKey.

This commit is contained in:
Lex Manos committed 2014-03-10 22:51:31 -07:00
1 parent 534b241e9f
commit d97ec2763c
1 file changed
+5
@@ -54,6 +54,11 @@ public abstract class FluidContainerRegistry
code = 31*code + fluid.fluidID;
return code;
}
@Override
public boolean equals(Object o)
{
return o != null && o.hashCode() == hashCode();
}
}
private static Map<ContainerKey, FluidContainerData> containerFluidMap = Maps.newHashMap();