mirror of
https://github.com/BlueMap-Minecraft/BlueMapWeb.git
synced 2024-11-24 19:05:10 +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) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.fileLoader.load(tileUrl + '?' + this.tileCacheHash,
|
this.fileLoader.load(tileUrl + '?' + this.tileCacheHash,
|
||||||
json => {
|
json => {
|
||||||
let geometryJson = json.tileGeometry;
|
let geometryJson = json.tileGeometry || {};
|
||||||
if (!geometryJson.type || geometryJson.type !== 'BufferGeometry'){
|
if (!geometryJson.type || geometryJson.type !== 'BufferGeometry'){
|
||||||
reject({status: "empty"});
|
reject({status: "empty"});
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user