Skip to content

Commit 9fc4303

Browse files
committed
Fix for game version 0.10.32.25682
1 parent 000be8c commit 9fc4303

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

NebulaNetwork/PacketProcessors/Statistics/StatisticsRequestEventProcessor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ static void SendExtraData(NebulaConnection conn, int astroFilter)
5757
var window = UIRoot.instance.uiGame.statWindow;
5858
var originalAstroFilter = window.astroFilter;
5959
window.astroFilter = astroFilter;
60-
window.RefreshItemsCyclicRefSpeed();
61-
window.RefreshItemsStorageGroupCount();
62-
window.RefreshGalacticTransportStorageCount();
60+
window.RefreshProductionExtraInfo(true);
6361
window.astroFilter = originalAstroFilter;
6462

6563
using var writer = new BinaryUtils.Writer();

NebulaPatcher/NebulaPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ private static void InitPatches()
360360
{
361361
try
362362
{
363-
Log.Info($"Patching Dyson Sphere Program version {GameConfig.gameVersion.ToFullString()}");
363+
Log.Info("Patching Dyson Sphere Program...");
364364
Log.Info($"Applying patches from {PluginInfo.PLUGIN_NAME} {PluginInfo.PLUGIN_DISPLAY_VERSION} made for game version {DSPGameVersion.VERSION}");
365365
#if DEBUG
366366
if (Directory.Exists("./mmdump"))

NebulaPatcher/Patches/Dynamic/UIStatisticsWindow_Patch.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ public static void AstroBoxToValue_Postfix(UIStatisticsWindow __instance)
7373
}
7474

7575
[HarmonyPrefix]
76-
[HarmonyPatch(nameof(UIStatisticsWindow.RefreshItemsCyclicRefSpeed))]
77-
[HarmonyPatch(nameof(UIStatisticsWindow.RefreshItemsStorageGroupCount))]
78-
[HarmonyPatch(nameof(UIStatisticsWindow.RefreshGalacticTransportStorageCount))]
76+
[HarmonyPatch(nameof(UIStatisticsWindow.RefreshProductionExtraInfo))]
7977
public static bool Refresh_Prefix(UIStatisticsWindow __instance)
8078
{
8179
if (!Multiplayer.IsActive || Multiplayer.Session.LocalPlayer.IsHost) return true;

NebulaPatcher/Patches/Dynamic/VFPreload_Patch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static void InvokeOnLoad_Postfix()
2626
NativeInterop.HideWindow();
2727
NativeInterop.SetConsoleCtrlHandler();
2828
// Logging to provide progression to user
29-
Log.Info("VFPreload.InvokeOnLoad");
29+
Log.Info($"Loading game version {GameConfig.gameVersion.ToFullString()}");
3030
}
3131

3232
[HarmonyPostfix]

0 commit comments

Comments
 (0)