Skip to content

Commit 02b5466

Browse files
committed
Update to v2.2.0/Fixed recipe pasting issue + fixed Nebula compatibility
1 parent 5459654 commit 02b5466

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

DSP_AssemblerUI/AssemblerSpeedUI/ModInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public static class ModInfo
55
public const string ModID = "dsp.assemblerUI.speedMod";
66
public const string ModName = "Assembler UI Speed Info Mod";
77
public const string majorVersion = "2";
8-
public const string minorVersion = "1";
8+
public const string minorVersion = "2";
99
public const string hotfixVersion = "0";
1010
public const string buildVersion = "0";
1111
public const string VersionString = majorVersion + "." + minorVersion + "." + hotfixVersion + "." + buildVersion;

DSP_AssemblerUI/AssemblerSpeedUI/Patchers/UiAssemblerWindowPatch.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ public static void OnAssemblerIdChangePostfix(UIAssemblerWindow __instance)
3030
SetupLabels(__instance);
3131
}
3232

33-
[HarmonyPostfix, HarmonyPatch(typeof(UIAssemblerWindow), "OnRecipePickerReturn")]
34-
public static void OnRecipePickerReturnPostfix(UIAssemblerWindow __instance)
33+
[HarmonyPostfix, HarmonyPatch(typeof(AssemblerComponent), "SetRecipe")]
34+
public static void SetRecipePostfix(AssemblerComponent __instance)
3535
{
36-
SetupLabels(__instance);
36+
if(UIRoot.instance.uiGame.assemblerWindow.active && UIRoot.instance.uiGame.assemblerWindow.assemblerId == __instance.id)
37+
{
38+
SetupLabels(UIRoot.instance.uiGame.assemblerWindow);
39+
}
3740
}
3841

3942
[HarmonyTranspiler, HarmonyPatch(typeof(UIAssemblerWindow), "_OnUpdate")]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@
2020
- v1.2.0 Added a config option to configure whether to always show the full speed of the selected recipe or whether to show the current live speed (affected by power for example)
2121
- v2.0.0 Updated To current Game version (Post May/June Updates), Added Miner UI Speeds (Original idea: tyr0wl), added Option to show speed per second
2222
- v2.1.0 Updated to be compatible with new game version and be more resistant to future updates. Restructured Project files and code.
23+
- v2.2.0 Updated to avoid a rare error when pasting recipes under specific circumstances. Should also ensure more compatibility with Nebula when another player changes the recipe of an open Assembler Window.

0 commit comments

Comments
 (0)