I actually only made two little changes to the code:
Originally Posted by Katalliaan
The first was to comment out line 11:
A problem happens when the game runs that, as was evident by the errors in the output log. And it was consequently causing the plugin to fail to load, which causes the game to try to reload it over and over, which causes the lag. But since the mod doesn't seem to make use of that configuration file stuff, commenting out the line way a simple was the deal with the issue.
//private static PluginConfiguration config = PluginConfiguration.CreateForType<subassemblyLoader>();
The second was to adjust the first number on line 129, which is the x coordinate of where the button is drawn in the VAB:
if (GUI.Button(new Rect(350, 1, 48, 36), new GUIContent(button, "Subassembly"), buttonStyle) && !EditorLogic.softLock)