Closed BenWoodworth closed 1 year ago
Currently, two binary different NaN values will return false for equality checks, even though they serialize differently.
NaN
false
Since the NbtTag types represent the serial form, if the serialized value is different, then the serial form should be unequal.
So, these equal functions should compare by the binary representation (with .toRawBits())
.toRawBits()
Currently, two binary different
NaN
values will returnfalse
for equality checks, even though they serialize differently.Since the NbtTag types represent the serial form, if the serialized value is different, then the serial form should be unequal.
So, these equal functions should compare by the binary representation (with
.toRawBits()
)