1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 02:53:29 +08:00

fix a logistics panel display issue while recreating planet

This commit is contained in:
2024-12-20 19:06:37 +08:00
parent 3486cc9ca2
commit 706e1649a1

View File

@@ -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)
{