diff --git a/index.html b/index.html index afc98889..6cfadf55 100644 --- a/index.html +++ b/index.html @@ -27,6 +27,10 @@ p stone p stone p stone + + p stone_bricks + + p deepslate axis=z diff --git a/src/blockstate.js b/src/blockstate.js index 433a25ce..989ef0c8 100644 --- a/src/blockstate.js +++ b/src/blockstate.js @@ -157,14 +157,15 @@ export class BlockstateResolver { if (!this.pending.has(id)) { const [space, name] = id.split(':'); + const url = `assets/${space}/blockstates/${name}.json`; - this.pending.set(id, fetch(`assets/${space}/blockstates/${name}.json`) + this.pending.set(id, fetch(url) .then(res => res.json()) .then(data => { const source = renderBlockstateResolver(data); /** @type {ResolverFunction} */ - const resolver = new Function(`return function (state, hash) { ${source} }`)(); + const resolver = new Function(`return function (state, hash) { ${source} } //# sourceURL=${url}`)(); this.resolvers.set(id, resolver); this.pending.delete(id);