NucleoidMC / nucleoid-creator-tools

Tools for working with and creating maps for the Nucleoid ecosystem
GNU Lesser General Public License v3.0
3 stars 8 forks source link

Migrate map workspaces persistent state key #26

Closed haykam821 closed 2 months ago

haykam821 commented 2 months ago

This pull request adds functionality to migrate the data/plasmid:map_workspaces.nbt file to nucleoid_creator_tools_map_workspaces.dat, if the former exists while the latter does not. This fixes an issue on Windows where saving map workspaces would always fail because the path contains a colon.

The moving functionality is tested on macOS, where loading with a colon succeeds. The functionality is not tested on Windows, but Windows support might should not matter since the file would never exist there.

Fixes #25