Skip to content

Check that SNBT on JS reads/writes floats/doubles correctly #42

@BenWoodworth

Description

@BenWoodworth

Kotlin/JS (and JavaScript in general) will stringify Floats/Doubles differently than on other targets, so make sure the TAG_Float and TAG_Double string representations are compatible with Minecraft's SNBT implementation.

For example, 10^100:

  • Java: 1.0E100
  • JavaScript: 1e+100

This applies to StringifiedNbt, and to NbtFloat/NbtDouble.toString()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions