mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Implement simple hash based equals in Fluid ContainerKey.
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user