mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 02:26:00 +01:00
Fix missed path 2
This commit is contained in:
parent
e339680978
commit
bceb7150ab
@ -396,7 +396,12 @@ export class BlueMapApp {
|
|||||||
const map = this.mapViewer.map;
|
const map = this.mapViewer.map;
|
||||||
if (!map) return;
|
if (!map) return;
|
||||||
|
|
||||||
this.playerMarkerManager = new PlayerMarkerManager(this.mapViewer.markers, map.data.liveDataRoot + "/live/players.json", map.data.mapDataRoot + "assets/playerheads/", this.events);
|
this.playerMarkerManager = new PlayerMarkerManager(
|
||||||
|
this.mapViewer.markers,
|
||||||
|
map.data.liveDataRoot + "/live/players.json",
|
||||||
|
map.data.mapDataRoot + "/assets/playerheads/",
|
||||||
|
this.events
|
||||||
|
);
|
||||||
this.playerMarkerManager.setAutoUpdateInterval(0);
|
this.playerMarkerManager.setAutoUpdateInterval(0);
|
||||||
return this.playerMarkerManager.update()
|
return this.playerMarkerManager.update()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
@ -123,12 +123,27 @@ export class Map {
|
|||||||
|
|
||||||
this.hiresMaterial = this.createHiresMaterial(hiresVertexShader, hiresFragmentShader, uniforms, textures);
|
this.hiresMaterial = this.createHiresMaterial(hiresVertexShader, hiresFragmentShader, uniforms, textures);
|
||||||
|
|
||||||
this.hiresTileManager = new TileManager(new TileLoader(`${this.data.mapDataRoot}/tiles/0/`, this.hiresMaterial, this.data.hires, this.loadBlocker, tileCacheHash), this.onTileLoad("hires"), this.onTileUnload("hires"), this.events);
|
this.hiresTileManager = new TileManager(new TileLoader(
|
||||||
|
`${this.data.mapDataRoot}/tiles/0/`,
|
||||||
|
this.hiresMaterial,
|
||||||
|
this.data.hires,
|
||||||
|
this.loadBlocker,
|
||||||
|
tileCacheHash
|
||||||
|
), this.onTileLoad("hires"), this.onTileUnload("hires"), this.events);
|
||||||
this.hiresTileManager.scene.matrixWorldAutoUpdate = false;
|
this.hiresTileManager.scene.matrixWorldAutoUpdate = false;
|
||||||
|
|
||||||
this.lowresTileManager = [];
|
this.lowresTileManager = [];
|
||||||
for (let i = 0; i < this.data.lowres.lodCount; i++) {
|
for (let i = 0; i < this.data.lowres.lodCount; i++) {
|
||||||
this.lowresTileManager[i] = new TileManager(new LowresTileLoader(`${this.data.mapDataRoot}/tiles/`, this.data.lowres, i + 1, lowresVertexShader, lowresFragmentShader, uniforms, async () => {}, tileCacheHash), this.onTileLoad("lowres"), this.onTileUnload("lowres"), this.events);
|
this.lowresTileManager[i] = new TileManager(new LowresTileLoader(
|
||||||
|
`${this.data.mapDataRoot}/tiles/`,
|
||||||
|
this.data.lowres,
|
||||||
|
i + 1,
|
||||||
|
lowresVertexShader,
|
||||||
|
lowresFragmentShader,
|
||||||
|
uniforms,
|
||||||
|
async () => {},
|
||||||
|
tileCacheHash
|
||||||
|
), this.onTileLoad("lowres"), this.onTileUnload("lowres"), this.events);
|
||||||
this.lowresTileManager[i].scene.matrixWorldAutoUpdate = false;
|
this.lowresTileManager[i].scene.matrixWorldAutoUpdate = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user