fix(UXAssist): guard non-UI input updates in menu demo

This commit is contained in:
2026-06-23 03:22:41 +08:00
parent f822c1a5c6
commit 87f08f3f8d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -196,6 +196,7 @@ public static class FactoryPatch
public static void OnInputUpdate() public static void OnInputUpdate()
{ {
if (DSPGame.IsMenuDemo) return;
if (_doNotRenderEntitiesKey.keyValue) if (_doNotRenderEntitiesKey.keyValue)
DoNotRenderEntitiesEnabled.Value = !DoNotRenderEntitiesEnabled.Value; DoNotRenderEntitiesEnabled.Value = !DoNotRenderEntitiesEnabled.Value;
if (CutConveyorBeltEnabled.Value && _cutConveyorBeltKey.keyValue) if (CutConveyorBeltEnabled.Value && _cutConveyorBeltKey.keyValue)
@@ -97,6 +97,7 @@ public static class LogisticsPatch
public static void OnInputUpdate() public static void OnInputUpdate()
{ {
if (DSPGame.IsMenuDemo) return;
if (VFInput.onGUI && LogisticsCapacityTweaksEnabled.Value) if (VFInput.onGUI && LogisticsCapacityTweaksEnabled.Value)
{ {
LogisticsCapacityTweaks.UpdateInput(); LogisticsCapacityTweaks.UpdateInput();