Skip to content
This repository was archived by the owner on Aug 10, 2025. It is now read-only.
This repository was archived by the owner on Aug 10, 2025. It is now read-only.

SNBT Parser cannot parse negative numbers in IntArrays #32

@Fisch37

Description

@Fisch37

Title...

Attempting to parse an integer array fails with a SyntaxError if the array contains a negative number.
This effectively means that any SNBT containing a UUID fails as those are length 4 Integer Arrays and UUID format guarantees a negative number here.

A simple check to confirm:

StringNbt.Parse("{uuid:[I; 0, 0, 0, -1]}");

throws

System.Data.SyntaxErrorException: 'Syntax error at index 19: Invalid character '-' in integer array.'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions