Game fails to load worldgen settings when .DS_Store files are present in datapack
The bug
MC-121379 happens again, with errors such as
Non [a-z0-9/._-] character in path of location: namespace:worldgen/structure/.DS_Store
How to reproduce
1. Start the game with the output log enabled
2. Load a data pack that has .DS_Store files (which are common on macOS)
3. Notice the errors in the log
Expected behavior
I expected the game to exclude these hidden system files when loading data packs and resource packs, and I expected this wouldn't show errors in the log.
Created Issue:
Game attempts to read .DS_Store files in data packs and fails
The bug
MC-121379happens again, with errors such asNon [a-z0-9/._-] character in path of location: namespace:worldgen/structure/.DS_Store
How to reproduce
1. Start the game with the output log enabled
2. Load a data pack that has .DS_Store files (which are common on macOS)
3. Notice the errors in the logExpected behavior
I expected the game to exclude these hidden system files when loading data packs and resource packs, and I expected this wouldn't show errors in the log.
Gameattempts toread .DS_Store files in datapacks and failsGame fails to load worldgen settingf when .DS_Store files are present in datapack
Game fails to load worldgen settingfwhen .DS_Store files are present in datapackGame fails to load worldgen settings when .DS_Store files are present in datapack

We decided to fix it by ignoring files that don't match this pattern, but still reporting this in logs - having unrecognized files in packs is unsupported.