gracefully handle texture load failures

This commit is contained in:
Brian Beck 2025-09-12 07:58:06 -07:00
parent b86e5622af
commit 4337ee85e9
9 changed files with 16 additions and 10 deletions

View file

@ -26,7 +26,10 @@ export function getActualResourcePath(resourcePath: string) {
const foundNested = resourcePaths.find(
(s) =>
s
.replace(/^(textures\/)((lush|desert|badlands|lava|ice)\/)/, "$1")
.replace(
/^(textures\/)((lush|desert|badlands|lava|ice|jaggedclaw)\/)/,
"$1"
)
.toLowerCase() === lowerCased
);
if (foundNested) {