diff --git a/BetterPolus/BetterPolus.csproj b/BetterPolus/BetterPolus.csproj index ec1b22c..2a39914 100644 --- a/BetterPolus/BetterPolus.csproj +++ b/BetterPolus/BetterPolus.csproj @@ -1,4 +1,4 @@ - + net6.0 1.2.2 @@ -10,8 +10,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/BetterPolus/BetterPolusPlugin.cs b/BetterPolus/BetterPolusPlugin.cs index 4ccac05..bb01aac 100644 --- a/BetterPolus/BetterPolusPlugin.cs +++ b/BetterPolus/BetterPolusPlugin.cs @@ -12,7 +12,7 @@ public class BetterPolusPlugin : BasePlugin { private const string Id = "ch.brybry.betterpolus"; private const string Name = "BetterPolus Mod"; - public const string Version = "1.2.2"; + public const string Version = "1.2.3"; private Harmony Harmony { get; } = new(Id); public static ManualLogSource Logger { get; private set; } diff --git a/BetterPolus/Patches/ShipStatusPatches.cs b/BetterPolus/Patches/ShipStatusPatches.cs index c069c7c..8231f62 100644 --- a/BetterPolus/Patches/ShipStatusPatches.cs +++ b/BetterPolus/Patches/ShipStatusPatches.cs @@ -123,7 +123,7 @@ public static class ShipStatusPatches if (DropShip == null) { - DropShip = Object.FindObjectsOfType().ToList().Find(o => o.name == "Dropship"); + DropShip = GameObject.Find("PolusShip(Clone)")?.transform?.FindChild("Dropship")?.gameObject; } if (Outside == null)