From 87f08f3f8dff60ee73236d834bacf7e0e431748f Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Tue, 23 Jun 2026 03:22:41 +0800 Subject: [PATCH] fix(UXAssist): guard non-UI input updates in menu demo --- UXAssist/Patches/Factory/FactoryPatch.cs | 1 + UXAssist/Patches/Logistics/LogisticsPatch.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/UXAssist/Patches/Factory/FactoryPatch.cs b/UXAssist/Patches/Factory/FactoryPatch.cs index 063e41b..9960aaa 100644 --- a/UXAssist/Patches/Factory/FactoryPatch.cs +++ b/UXAssist/Patches/Factory/FactoryPatch.cs @@ -196,6 +196,7 @@ public static class FactoryPatch public static void OnInputUpdate() { + if (DSPGame.IsMenuDemo) return; if (_doNotRenderEntitiesKey.keyValue) DoNotRenderEntitiesEnabled.Value = !DoNotRenderEntitiesEnabled.Value; if (CutConveyorBeltEnabled.Value && _cutConveyorBeltKey.keyValue) diff --git a/UXAssist/Patches/Logistics/LogisticsPatch.cs b/UXAssist/Patches/Logistics/LogisticsPatch.cs index d5a18cb..a73ceab 100644 --- a/UXAssist/Patches/Logistics/LogisticsPatch.cs +++ b/UXAssist/Patches/Logistics/LogisticsPatch.cs @@ -97,6 +97,7 @@ public static class LogisticsPatch public static void OnInputUpdate() { + if (DSPGame.IsMenuDemo) return; if (VFInput.onGUI && LogisticsCapacityTweaksEnabled.Value) { LogisticsCapacityTweaks.UpdateInput();