Saving a structure to a sub folder fails if the folder does not exist yet
The bug
See title, saving a structure with a sub folder (eg "test/test") returns "unable to save structure" if the folder does not exist (it works fine if the folder exists).
Code analysis
TemplateManager.writeTemplate(MinecraftServer server, ResourceLocation id) returns false if creating a new instance of FileOutputStream throws a FileNotFoundException when the specified directory does not exist.
2017-08-09, 06:09 PM
2018-12-30, 01:10 AM
2018-01-03, 03:33 PM
1
0
folder, save, structure, structure_block
Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1