Skip to content

[BUG] Chunk Attachment do not save and load correctly since a tiny bug #1504

Description

@linstarowo

Description

In ServerLevelPlot.java save() function

the first parameter of writeLightData() and writeChunkAttachments() should be chunkTag —matching the ServerLevelPlot.load()—rather than tag.

  chunkTag.put("heightmaps", heightMapsTag);
  
 // These lines are buggy
  SablePlotPlatform.INSTANCE.writeLightData(tag, level.registryAccess(), chunk);
  SablePlotPlatform.INSTANCE.writeChunkAttachments(tag, level.registryAccess(), chunk);

  chunks.put(String.valueOf(ChunkPos.asLong(local.x, local.z)), chunkTag);

Game Log

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions