Fix null keys

This commit is contained in:
Nick 2023-08-24 14:38:37 -04:00
parent 0720116e9f
commit 330b1b1675

View File

@ -28,9 +28,12 @@ namespace NewHorizons.Handlers
}
public static void RegisterVanillaProxyBody(ProxyBody proxy)
{
if (proxy.realObjectTransform != null)
{
_vanillaProxyBody.Add(proxy.realObjectTransform, proxy);
}
}
public static ProxyBody GetVanillaProxyBody(Transform t)
{
@ -45,9 +48,12 @@ namespace NewHorizons.Handlers
}
public static void RegisterVanillaProxyOrbiter(ProxyOrbiter proxy)
{
if (proxy._originalPlanetBody != null)
{
_vanillaProxyOrbiter.Add(proxy._originalPlanetBody, proxy);
}
}
public static ProxyOrbiter GetVanillaProxyOrbiter(Transform t)
{