mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 19:15:32 +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
@@ -61,9 +61,9 @@ public class CodecsTest
|
||||
LOGGER.error("Error decoding withTag: {}", error);
|
||||
}).getFirst();
|
||||
|
||||
if (!noTag.equals(noTag_decode))
|
||||
if (!noTag.isFluidStackIdentical(noTag_decode))
|
||||
throw new IllegalStateException("Decoded noTag does not match");
|
||||
if (!withTag.equals(withTag_decode))
|
||||
if (!withTag.isFluidStackIdentical(withTag_decode))
|
||||
throw new IllegalStateException("Decoded withTag does not match");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user