diff --git a/plugin_template/patches/stock_tech_tree.patch b/plugin_template/patches/stock_tech_tree.patch
new file mode 100644
index 0000000..c07165b
--- /dev/null
+++ b/plugin_template/patches/stock_tech_tree.patch
@@ -0,0 +1,42 @@
+:science #tNode_1v_utility_01 {
+ UnlockedPartsIDs: +[
+ "KLSS_life_support_tank_1v_1x1"
+ ];
+}
+
+:science #tNode_2v_payload {
+ UnlockedPartsIDs: +[
+ "KLSS_life_support_tank_2v_1x1"
+ ];
+}
+
+:science #tNode_1v_rover {
+ UnlockedPartsIDs: +[
+ "KLSS_food_pack_0v_radial",
+ "KLSS_water_tank_0v_radial",
+ "KLSS_oxygen_tank_0v_radial"
+ ];
+}
+
+:science #tNode_2v_docking {
+ UnlockedPartsIDs: +[
+ "KLSS_food_tank_2v_1x2",
+ "KLSS_water_tank_2v_1x2",
+ "KLSS_oxygen_tank_2v_1x2"
+ ];
+}
+
+:science #tNode_3v_payload_01 {
+ UnlockedPartsIDs: +[
+ "KLSS_food_pack_2v_radial",
+ "KLSS_water_tank_2v_radial",
+ "KLSS_oxygen_tank_2v_radial"
+ ];
+}
+
+:science #tNode_2v_electronics_02 {
+ UnlockedPartsIDs: +[
+ "KLSS_greenhouse_2v_long",
+ "KLSS_composter_2v_short"
+ ];
+}
\ No newline at end of file
diff --git a/plugin_template/swinfo.json b/plugin_template/swinfo.json
index 989ffc9..693fe80 100644
--- a/plugin_template/swinfo.json
+++ b/plugin_template/swinfo.json
@@ -5,7 +5,7 @@
"name": "Kerbal Life-Support System",
"description": "Kerbals need their Snacks.",
"source": "https://github.com/Safarte/KerbalLifeSupportSystem",
- "version": "0.4.1",
+ "version": "0.5.0",
"version_check": "https://raw.githubusercontent.com/Safarte/KerbalLifeSupportSystem/main/plugin_template/swinfo.json",
"ksp2_version": {
"min": "0.1.5",
@@ -29,7 +29,7 @@
{
"id": "PatchManager",
"version": {
- "min": "0.3.0",
+ "min": "0.5.0",
"max": "*"
}
},
diff --git a/src/KerbalLifeSupportSystem/KerbalLifeSupportSystem.csproj b/src/KerbalLifeSupportSystem/KerbalLifeSupportSystem.csproj
index 2f5c40e..e526bbd 100644
--- a/src/KerbalLifeSupportSystem/KerbalLifeSupportSystem.csproj
+++ b/src/KerbalLifeSupportSystem/KerbalLifeSupportSystem.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/src/KerbalLifeSupportSystem/Modules/Module_LifeSupportConsumer.cs b/src/KerbalLifeSupportSystem/Modules/Module_LifeSupportConsumer.cs
index 6f24aef..093b7e6 100644
--- a/src/KerbalLifeSupportSystem/Modules/Module_LifeSupportConsumer.cs
+++ b/src/KerbalLifeSupportSystem/Modules/Module_LifeSupportConsumer.cs
@@ -11,20 +11,20 @@ public class Module_LifeSupportConsumer : PartBehaviourModule
public override Type PartComponentModuleType => typeof(PartComponentModule_LifeSupportConsumer);
- public override void AddDataModules()
+ protected override void AddDataModules()
{
base.AddDataModules();
_dataLifeSupportConsumer ??= new Data_LifeSupportConsumer();
DataModules.TryAddUnique(_dataLifeSupportConsumer, out _dataLifeSupportConsumer);
}
- public override void OnInitialize()
+ protected override void OnInitialize()
{
base.OnInitialize();
if (PartBackingMode == PartBackingModes.Flight) moduleIsEnabled = true;
}
- public override void OnModuleOABFixedUpdate(float deltaTime)
+ protected override void OnModuleOABFixedUpdate(float deltaTime)
{
if ((OABPart == null || !(_dataLifeSupportConsumer.RequestHandle == ResourceFlowRequestHandle.InvalidID))
&& (resourceFlowRequestBroker == null ||