mirror of
https://github.com/BlueMap-Minecraft/BlueMapWeb.git
synced 2024-11-28 04:45:13 +01:00
Fix error on loading empty tiles
This commit is contained in:
parent
3f3dfc78bd
commit
3d37231109
@ -61,7 +61,7 @@ export class TileLoader {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.fileLoader.load(tileUrl + '?' + this.tileCacheHash,
|
||||
json => {
|
||||
let geometryJson = json.tileGeometry;
|
||||
let geometryJson = json.tileGeometry || {};
|
||||
if (!geometryJson.type || geometryJson.type !== 'BufferGeometry'){
|
||||
reject({status: "empty"});
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user