From 03dcc382c6116f0683d7ea9445c466ff8c762ba7 Mon Sep 17 00:00:00 2001 From: Safarte Date: Wed, 20 Dec 2023 23:21:06 +0100 Subject: [PATCH] KSP2 0.2.0 --- plugin_template/swinfo.json | 4 ++-- src/KerbalLifeSupportSystem/KerbalLifeSupportSystem.csproj | 2 +- .../Modules/Module_LifeSupportConsumer.cs | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) 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 ||