mirror of
https://github.com/array-in-a-matrix/brainwine.git
synced 2025-04-02 11:11:58 -04:00
Create zone data directory upon saving (#4)
This commit is contained in:
parent
01d97ac428
commit
79bb14cdbe
1 changed files with 1 additions and 0 deletions
|
@ -157,6 +157,7 @@ public class Zone {
|
|||
|
||||
public void save() throws Exception {
|
||||
File dataDir = new File("zones\\" + documentId);
|
||||
dataDir.mkdirs();
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
mapper.writerWithDefaultPrettyPrinter().writeValue(new File(dataDir, "config.json"), this);
|
||||
chunkManager.saveModifiedChunks();
|
||||
|
|
Loading…
Add table
Reference in a new issue