From 9011ef227166d6010098077e75ad4286cd31e695 Mon Sep 17 00:00:00 2001 From: David Allemang Date: Sat, 18 Jul 2026 23:54:12 -0400 Subject: [PATCH] inspect in debugger sources --- index.html | 4 ++++ src/blockstate.js | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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);