Skip to content

Commit

Permalink
Check for subcore eject to save tick time
Browse files Browse the repository at this point in the history
  • Loading branch information
eth0net committed Mar 28, 2023
1 parent 6fdc284 commit 48e6863
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file modified Assemblies/SubcoreInfo.dll
Binary file not shown.
3 changes: 3 additions & 0 deletions Source/SubcoreInfo/Harmony/Harmony_Building_SubcoreScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ internal static void Prefix(Building_SubcoreScanner __instance, ref Name __state
/// <param name="__state"></param>
internal static void Postfix(Building_SubcoreScanner __instance, Name __state)
{
bool ejected = __instance.GetComp<CompEjected>().Ejected;
if (!ejected) { return; }

CompSubcoreInfo comp = TryGetSubcoreComp(__instance);
if (comp == null) { return; }

Expand Down

0 comments on commit 48e6863

Please sign in to comment.