Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store chunk persistent data container #57

Closed
davidmayr opened this issue May 14, 2023 · 1 comment
Closed

Store chunk persistent data container #57

davidmayr opened this issue May 14, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@davidmayr
Copy link

davidmayr commented May 14, 2023

Is your feature request related to a problem? Please describe.
The chunk's persistent data container is sadly not serialized in slime worlds.

Describe the solution you'd like
In a future slime file version, a new field could be added where the persistent NBT data is stored in.

As a workaround, I currently store the persistent data container in the world's extra tag (Via a compound tag called "chunk_pdc" that stores byte array tags. The key for the array tags is the chunk's chunkKey converted to a string) on chunk/world save (and plugin unload) and load it on chunk load. It seems quite hacky, but it works. Maybe this could be added in ASP itself like I did myself instead of adding a new field?

@davidmayr davidmayr added the enhancement New feature or request label May 14, 2023
@kyngs
Copy link
Member

kyngs commented Jan 17, 2024

Implemented in #91

@kyngs kyngs closed this as completed Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants