Skip to content

.0 is ignored in doubles in toSNBT #89

@Wolfyxon

Description

@Wolfyxon

Example, tag has a double value: 20.0
After using SNBTUtil.toSNBT(tag), the value turns to 20.
After trying to convert it back to Tag it will throw an error.
Example:

 net.querz.nbt.io.ParseException: cannot add IntTag to ListTag<DoubleTag> at: ...ore":0,"Pos":[-301.5592469090256,72<--[HERE]

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