mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-30 22:44:23 +01:00
Merge branch 'master' into mc/1.12
This commit is contained in:
commit
1a806757e9
@ -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())
|
||||
);
|
||||
|
@ -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