Fix install bug
This commit is contained in:
parent
4d018857ad
commit
0fb9d99100
|
@ -9,8 +9,8 @@ android {
|
|||
applicationId "com.zane.smapiinstaller"
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 28
|
||||
versionCode 3
|
||||
versionName "1.1.0"
|
||||
versionCode 4
|
||||
versionName "1.1.1"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
multiDexEnabled true
|
||||
|
|
|
@ -110,6 +110,9 @@ public class ModAssetsManager {
|
|||
Joiner.on(",").join(Lists.transform(installedMods, item -> CommonLogic.toPrettyPath(item.getAssetPath())))));
|
||||
return false;
|
||||
}
|
||||
else if(installedModMap.size() == 0) {
|
||||
installedMods = installedModMap.get(mod.getUniqueID().replace("ZaneYork.CustomLocalization", "SMAPI.CustomLocalization"));
|
||||
}
|
||||
try {
|
||||
ZipUtil.unpack(context.getAssets().open(mod.getAssetPath()), new File(installedMods.get(0).getAssetPath()), (name)-> StringUtils.removeStart(name, mod.getName() + "/"));
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Reference in New Issue