diff --git a/BlueMapCLI/src/main/java/de/bluecolored/bluemap/cli/BlueMapCLI.java b/BlueMapCLI/src/main/java/de/bluecolored/bluemap/cli/BlueMapCLI.java index 7adf3e40..41fc1274 100644 --- a/BlueMapCLI/src/main/java/de/bluecolored/bluemap/cli/BlueMapCLI.java +++ b/BlueMapCLI/src/main/java/de/bluecolored/bluemap/cli/BlueMapCLI.java @@ -109,7 +109,7 @@ public void renderMaps() throws IOException { } HiresModelManager hiresModelManager = new HiresModelManager( - config.getWebDataPath().resolve("hires").resolve(mapConfig.getId()), + config.getWebDataPath().resolve(mapConfig.getId()).resolve("hires"), resourcePack, mapConfig, new Vector2i(mapConfig.getHiresTileSize(), mapConfig.getHiresTileSize()), @@ -117,7 +117,7 @@ public void renderMaps() throws IOException { ); LowresModelManager lowresModelManager = new LowresModelManager( - config.getWebDataPath().resolve("lowres").resolve(mapConfig.getId()), + config.getWebDataPath().resolve(mapConfig.getId()).resolve("lowres"), new Vector2i(mapConfig.getLowresPointsPerLowresTile(), mapConfig.getLowresPointsPerLowresTile()), new Vector2i(mapConfig.getLowresPointsPerHiresTile(), mapConfig.getLowresPointsPerHiresTile()) ); diff --git a/BlueMapCore/src/main/webroot/js/libs/bluemap.js b/BlueMapCore/src/main/webroot/js/libs/bluemap.js index 2225c808..b6f86269 100644 --- a/BlueMapCore/src/main/webroot/js/libs/bluemap.js +++ b/BlueMapCore/src/main/webroot/js/libs/bluemap.js @@ -391,7 +391,7 @@ BlueMap.prototype.loadLowresMaterial = function (callback) { BlueMap.prototype.loadHiresTile = function (tileX, tileZ, callback, onError) { let scope = this; - let path = this.dataRoot + "hires/" + this.map + "/"; + let path = this.dataRoot + this.map + "/hires/"; path += BlueMap.utils.pathFromCoords(tileX, tileZ); path += ".json"; @@ -416,7 +416,7 @@ BlueMap.prototype.loadHiresTile = function (tileX, tileZ, callback, onError) { BlueMap.prototype.loadLowresTile = function (tileX, tileZ, callback, onError) { let scope = this; - let path = this.dataRoot + "lowres/" + this.map + "/"; + let path = this.dataRoot + this.map + "/lowres/"; path += BlueMap.utils.pathFromCoords(tileX, tileZ); path += ".json"; @@ -979,6 +979,7 @@ BlueMap.Module.MapMenu = function (blueMap) { for (mapId in maps) { if (!maps.hasOwnProperty(mapId)) continue; + if (!maps.enabled) continue; let map = maps[mapId]; $('