block object

This commit is contained in:
2026-07-04 18:07:55 -04:00
parent b5c318de1b
commit 3ba219697e
6 changed files with 136 additions and 70 deletions

View File

@@ -37,8 +37,6 @@ export class Blockstate {
this.variants = json.variants;
this.multipart = json.multipart;
// Memoize evaluated property combinations to prevent console spam
// and speed up Sweep 2 recalculations.
this._resolutionCache = new Map();
}
@@ -95,7 +93,6 @@ export class Blockstate {
}
resolveParts(properties) {
// Create a deterministic cache key from the properties object
const cacheKey = Object.keys(properties).sort().map(k => `${k}=${properties[k]}`).join(',');
if (this._resolutionCache.has(cacheKey)) {