Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FloatTag and DoubleTag do not consider NaN values in equality check #1

Open
Marcono1234 opened this issue Jan 3, 2019 · 0 comments
Assignees
Labels

Comments

@Marcono1234
Copy link

return obj instanceof FloatTag && ((FloatTag) obj).value == this.value;

return obj instanceof DoubleTag && ((DoubleTag) obj).value == this.value;

See KyoriPowered/nbt#1 for a suggested fix

@Cybermaxke Cybermaxke self-assigned this Jan 4, 2019
@Cybermaxke Cybermaxke added the bug label Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants