diff --git a/PokemonInserter.cs b/PokemonInserter.cs index 2de5988..ebea701 100644 --- a/PokemonInserter.cs +++ b/PokemonInserter.cs @@ -487,7 +487,7 @@ private void FillTexture2D(AssetTypeValueField atvf) atvf["m_CompleteImageSize"].GetValue().Set(7744); atvf["m_TextureFormat"].GetValue().Set(50); atvf["m_MipCount"].GetValue().Set(1); - atvf["m_IsReadable"].GetValue().Set(true); + atvf["m_IsReadable"].GetValue().Set(false); atvf["m_ImageCount"].GetValue().Set(1); atvf["m_TextureDimension"].GetValue().Set(2); atvf["m_TextureSettings"]["m_FilterMode"].GetValue().Set(1); @@ -1164,6 +1164,8 @@ private CloneMode DuplicateAssetBundle(string srcPath, string dstPath, CloneMode bfi = fileManager.GetPokemonBundleFileInstance(srcPath.Replace('/', '\\')); break; } + if (bfi == null) + return c; bfi.name = ReplacePM(bfi.name, refPM);