diff --git a/CHANGELOG.md b/CHANGELOG.md index ef1f81e4c..ff0130d6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ ## Changelog +0.9.8: +- @AlienXAXS: Added Online Player UI (Backtick key by default) +- @AlienXAXS: Updated Nebula to be compatible with Dyson Sphere Program v0.10.30.23292 0.9.7: - @AlienXAXS: Headless now calculates planetary shields on CPU diff --git a/NebulaNetwork/PacketProcessors/Factory/PrebuildItemRequiredUpdateProcessor.cs b/NebulaNetwork/PacketProcessors/Factory/PrebuildItemRequiredUpdateProcessor.cs index f5d7ff941..87e2c761e 100644 --- a/NebulaNetwork/PacketProcessors/Factory/PrebuildItemRequiredUpdateProcessor.cs +++ b/NebulaNetwork/PacketProcessors/Factory/PrebuildItemRequiredUpdateProcessor.cs @@ -43,7 +43,7 @@ protected override void ProcessPacket(PrebuildItemRequiredUpdate packet, NebulaC factory.NotifyPrebuildChange(ptr.id, 3); if (factory.planet.factoryLoaded || factory.planet.factingCompletedStage >= 3) { - factory.AlterPrebuildModelState(ptr.id, false); + factory.AlterPrebuildModelState(ptr.id); } factory.constructionSystem.AddBuildTargetToModules(ptr.id, ref ptr.pos); } diff --git a/NebulaPatcher/Patches/Transpilers/UIStatisticsWindow_Transpiler.cs b/NebulaPatcher/Patches/Transpilers/UIStatisticsWindow_Transpiler.cs index 03464b37b..ed466cfab 100644 --- a/NebulaPatcher/Patches/Transpilers/UIStatisticsWindow_Transpiler.cs +++ b/NebulaPatcher/Patches/Transpilers/UIStatisticsWindow_Transpiler.cs @@ -16,6 +16,15 @@ namespace NebulaPatcher.Patches.Transpilers; [HarmonyPatch(typeof(UIStatisticsWindow))] public static class UIStatisticsWindow_Transpiler { + + /* + * AlienX: After looking at the code which v0.10.30.23292 has (this method changed), it would seem that: + * - It creates two lists private in scope to the method: items and itemsData + * - Populates these lists + * - Does nothing with them + * + * Is this method completely redundant now??? + [HarmonyTranspiler] [HarmonyPatch(nameof(UIStatisticsWindow.RefreshAstroBox))] private static IEnumerable RefreshAstroBox_Transpiler(IEnumerable instructions) @@ -65,6 +74,7 @@ private static IEnumerable RefreshAstroBox_Transpiler(IEnumerab return codeInstructions; } } + */ [HarmonyTranspiler] [HarmonyPatch(nameof(UIStatisticsWindow.ComputeDisplayProductEntries))] diff --git a/NebulaWorld/Player/DroneManager.cs b/NebulaWorld/Player/DroneManager.cs index ff0a77717..128713484 100644 --- a/NebulaWorld/Player/DroneManager.cs +++ b/NebulaWorld/Player/DroneManager.cs @@ -279,7 +279,7 @@ private ref DroneComponent CreateDrone(PlanetFactory factory, Vector3 pos, Quate craftData.astroId = factory.planetId; craftData.owner = playerId; // Use craft.owner field to store playerId craftData.port = 0; - craftData.prototype = EPrototype.ConstructionDrone; + craftData.prototype = ECraftProto.ConstructionDrone; craftData.dynamic = true; craftData.isSpace = false; craftData.pos = pos; diff --git a/version.json b/version.json index 475467750..51f7e273c 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", - "version": "0.9.7", + "version": "0.9.8", "assemblyVersion": { "precision": "build" },