From 12b75f64a1045fe1fe0d11b0f4e6d945791e3dd9 Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Wed, 1 Feb 2023 21:42:43 +0100 Subject: [PATCH] Dont load the full meta-file only to test if it exists --- .../src/main/java/de/bluecolored/bluemap/core/map/BmMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/map/BmMap.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/map/BmMap.java index 95aa697c..763072db 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/map/BmMap.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/map/BmMap.java @@ -138,7 +138,7 @@ public synchronized void save() { // only save texture gallery if not present in storage try { - if (storage.readMeta(id, META_FILE_TEXTURES).isEmpty()) + if (storage.readMetaInfo(id, META_FILE_TEXTURES).isEmpty()) saveTextureGallery(); } catch (IOException e) { Logger.global.logError("Failed to read texture gallery", e);