Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
part not assigned a mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Crzyrndm committed Dec 24, 2014
1 parent 93dc70b commit 15430eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion FilterExtension/Check.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,14 @@ private bool checkManufacturer(AvailablePart part)

private bool checkFolder(AvailablePart part)
{
bool folderCheck = Core.partFolderDict[part.name] == value;
if (part.name == "PotatoRoid")
return false;

bool folderCheck = false;
if (Core.partFolderDict.ContainsKey(part.name))
folderCheck = Core.partFolderDict[part.name] == value;
else
Debug.Log("[Filter Extensions] Unable to assign a mod to the part " + part.title);

return (folderCheck && pass) || !(folderCheck || pass);
}
Expand Down
Binary file modified GameData/Filter Extensions/FilterExtensions.dll
Binary file not shown.

0 comments on commit 15430eb

Please sign in to comment.