Skip to content

Commit

Permalink
Merge pull request #10 from Arylos07/develop
Browse files Browse the repository at this point in the history
v1.0.3 hotfix
  • Loading branch information
Arylos07 authored Oct 2, 2021
2 parents 2f5ac7a + ba0ef93 commit c1c644c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Assets/Scripts/FileManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ public void CreateModpack(ModheimModpack rawModpack)

rawModpack.modpackDirectory = ScanFiles(true);

rawModpack.modpackDirectory.Files.Remove(deployedFilename);
int deployedFile = rawModpack.modpackDirectory.Files.FindIndex(x => x.Contains(deployedFilename));
if(deployedFile != -1) rawModpack.modpackDirectory.Files.RemoveAt(deployedFile);

DirectoryCopy(valheimDirectory, workingDirectory, true, DefaultFiles);

Expand Down
3 changes: 2 additions & 1 deletion Assets/Scripts/PackCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ public void DisplayChanges()
changes.text += "<color=green>--> " + folder.Name + "</color>\n";
}

directory.Files.Remove(".deployed_modheim_pack");
int deployedFile = directory.Files.FindIndex(filename => filename.Contains(".deployed_modheim_pack"));
if (deployedFile != -1) directory.Files.RemoveAt(deployedFile);

foreach (string _file in directory.Files)
{
Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 1.0.2
bundleVersion: 1.0.3
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
Expand Down

0 comments on commit c1c644c

Please sign in to comment.