diff --git a/.editorconfig b/.editorconfig index 76953e8..d4d6435 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,3 +6,4 @@ indent_size = 4 charset = utf-8 trim_trailing_whitespace = false insert_final_newline = false +end_of_line = lf diff --git a/dbc/scripts/updateHotfixes.php b/dbc/scripts/updateHotfixes.php index a0b455f..1478e2a 100644 --- a/dbc/scripts/updateHotfixes.php +++ b/dbc/scripts/updateHotfixes.php @@ -128,6 +128,7 @@ if (!in_array($md5, $processedMD5s)) { $insertMD5->execute([$md5]); + $processedMD5s[] = $md5; echo "[Hotfix updater] [" . date("Y-m-d H:i:s") . "] Inserted " . $md5 . " as processed cache\n"; } } diff --git a/mv/modelviewer.js b/mv/modelviewer.js index d68689b..bd21b94 100644 --- a/mv/modelviewer.js +++ b/mv/modelviewer.js @@ -462,6 +462,9 @@ function loadModelTextures() { if (!data.hasOwnProperty(displayId)) continue; var intArray = data[displayId]; + if (intArray.every(fdid => fdid === 0)){ + continue; + } // Open controls overlay $("#js-controls").removeClass("closed"); @@ -482,6 +485,7 @@ function loadModelTextures() { }) .done(function( filename ) { var textureFileDataIDs = decodeURIComponent(this.url.replace("https://wow.tools/files/scripts/filedata_api.php?filename=1&filedataid=", '')).split(','); + var textureFileDataID = textureFileDataIDs[0]; var optionHTML = '