mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Remove amount from FluidStack hashCode to fix the equal/hashCode java contract (#9602)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user