Remove amount from FluidStack hashCode to fix the equal/hashCode java contract (#9602)

This commit is contained in:
Sara Freimer authored and GitHub committed 2023-06-27 13:57:34 +02:00
1 parent a8dce04c1b
commit 81f123fcab
2 files changed
+2 -3

No files matched your search

@@ -315,7 +315,6 @@ public class FluidStack
{
int code = 1;
code = 31*code + getFluid().hashCode();
code = 31*code + amount;
if (tag != null)
code = 31*code + tag.hashCode();
return code;