Skip to content

SpongeParser fails to parse valid .schematic file (no blocks detected) #7

@amatheo

Description

@amatheo

Description:

When loading the attached .schematic file (6901.zip), the parser detects it as SPONGE_V1 but fails to read any blocks (0 Block found).

I tested the same file with FAWE-Core and WorldEdit, and both parsed it without issue, so the file itself should not be corrupted.

After debugging, it seems that in the SpongeParser.parseBlocks method, the getByteArray step is skipped because the "BlockData" tag is not present in the file.

I’m not fully familiar with the schematic spec, so I’m unsure if the parser should handle this variant or if it’s missing support that FAWE/WE already implement.

I’m also interested in contributing a fix for this issue. Could you point me in the right direction on where to start looking in FAWE or WE’s codebase to understand how they handle this case?

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