mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-02-02 13:41:21 +01:00
Change render-data-folder structure to have only one folder per world
This commit is contained in:
parent
1af2a8c86d
commit
8f992413da
@ -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];
|
||||
$('<li map="' + mapId + '">' + map.name + '</li>').appendTo(this.maplist);
|
||||
|
@ -217,7 +217,7 @@ public synchronized void load() throws ExecutionException, IOException, Interrup
|
||||
}
|
||||
|
||||
HiresModelManager hiresModelManager = new HiresModelManager(
|
||||
config.getWebDataPath().resolve("hires").resolve(id),
|
||||
config.getWebDataPath().resolve(id).resolve("hires"),
|
||||
resourcePack,
|
||||
mapConfig,
|
||||
new Vector2i(mapConfig.getHiresTileSize(), mapConfig.getHiresTileSize()),
|
||||
@ -225,7 +225,7 @@ public synchronized void load() throws ExecutionException, IOException, Interrup
|
||||
);
|
||||
|
||||
LowresModelManager lowresModelManager = new LowresModelManager(
|
||||
config.getWebDataPath().resolve("lowres").resolve(id),
|
||||
config.getWebDataPath().resolve(id).resolve("lowres"),
|
||||
new Vector2i(mapConfig.getLowresPointsPerLowresTile(), mapConfig.getLowresPointsPerLowresTile()),
|
||||
new Vector2i(mapConfig.getLowresPointsPerHiresTile(), mapConfig.getLowresPointsPerHiresTile())
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user