From d9d905e34a5437966dc1448da2cee5a6f6794a7b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 23 Jul 2023 08:15:39 -0400 Subject: [PATCH] File structure update. --- src/engine/util/MapLoader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/util/MapLoader.java b/src/engine/util/MapLoader.java index cf5e7641..70c146cb 100644 --- a/src/engine/util/MapLoader.java +++ b/src/engine/util/MapLoader.java @@ -31,7 +31,8 @@ public enum MapLoader { // Load image from disk try { - image = ImageIO.read(new File(ConfigManager.DEFAULT_DATA_DIR + "realmmaps/" + ConfigManager.MB_WORLD_REALMMAP + ".png")); + String mapPath = ConfigManager.DEFAULT_DATA_DIR + "realmmaps/" + ConfigManager.MB_WORLD_REALMMAP + ".png"; + image = ImageIO.read(new File(mapPath)); // Array size determined by image size MBServerStatics.SPATIAL_HASH_BUCKETSX = image.getWidth();