From 706e1649a188464ad4ffbafc653efde7198c348c Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Fri, 20 Dec 2024 19:06:37 +0800 Subject: [PATCH] fix a logistics panel display issue while recreating planet --- UXAssist/Patches/LogisticsPatch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UXAssist/Patches/LogisticsPatch.cs b/UXAssist/Patches/LogisticsPatch.cs index a06bb6c..0027062 100644 --- a/UXAssist/Patches/LogisticsPatch.cs +++ b/UXAssist/Patches/LogisticsPatch.cs @@ -741,7 +741,7 @@ public static class LogisticsPatch var factory = localPlanet.factory; var transport = factory?.transport; - if (transport == null || transport.stationCursor == 0 || (UIGame.viewMode != EViewMode.Normal && UIGame.viewMode != EViewMode.Globe)) + if (transport is not { stationCursor: > 1 } || (UIGame.viewMode != EViewMode.Normal && UIGame.viewMode != EViewMode.Globe)) { if (_stationTipRoot.activeSelf) {