mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-11 22:44:47 +00:00
gracefully handle texture load failures
This commit is contained in:
parent
b86e5622af
commit
4337ee85e9
9 changed files with 16 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue