mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-02-24 16:31:32 +01:00
Move render-state file to data folder
This commit is contained in:
parent
4ed0731956
commit
12f577ef41
@ -215,7 +215,7 @@ public synchronized void load() throws ExecutionException, IOException, NoSuchRe
|
||||
|
||||
//load render-manager state
|
||||
try {
|
||||
File saveFile = configurationDir.resolve("rmstate").toFile();
|
||||
File saveFile = config.getDataPath().resolve("rmstate").toFile();
|
||||
saveFile.getParentFile().mkdirs();
|
||||
if (saveFile.exists()) {
|
||||
try (DataInputStream in = new DataInputStream(new GZIPInputStream(new FileInputStream(saveFile)))) {
|
||||
@ -288,7 +288,7 @@ public synchronized void unload() {
|
||||
if (updateHandler != null) updateHandler.flushTileBuffer(); //first write all buffered tiles to the render manager to save them too
|
||||
if (renderManager != null) {
|
||||
try {
|
||||
File saveFile = configurationDir.resolve("rmstate").toFile();
|
||||
File saveFile = config.getDataPath().resolve("rmstate").toFile();
|
||||
saveFile.getParentFile().mkdirs();
|
||||
if (saveFile.exists()) saveFile.delete();
|
||||
saveFile.createNewFile();
|
||||
|
Loading…
Reference in New Issue
Block a user