fix(CheatEnabler): restore BuildToolOpt station replacement

This commit is contained in:
2026-07-12 18:30:20 +08:00
parent 66ecebaca7
commit 010ec73c8d
7 changed files with 21 additions and 7 deletions
+2 -2
View File
@@ -188,7 +188,7 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
var main = GameMain.instance;
if (main != null && main._running && __instance.factory?.planet?.data != null)
{
ArrivePlanet(__instance.factory);
global::CheatEnabler.Patches.FactoryPatch.ArrivePlanet(__instance.factory);
}
}
@@ -198,7 +198,7 @@ public class FactoryPatch : PatchImpl<FactoryPatch>
var factory = GameMain.mainPlayer?.factory;
if (factory?.planet?.data != null)
{
ArrivePlanet(factory);
global::CheatEnabler.Patches.FactoryPatch.ArrivePlanet(factory);
}
GameMain.data?.warningSystem?.UpdateCriticalWarningText();
}