mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix null keys
This commit is contained in:
parent
0720116e9f
commit
330b1b1675
@ -29,7 +29,10 @@ namespace NewHorizons.Handlers
|
|||||||
|
|
||||||
public static void RegisterVanillaProxyBody(ProxyBody proxy)
|
public static void RegisterVanillaProxyBody(ProxyBody proxy)
|
||||||
{
|
{
|
||||||
_vanillaProxyBody.Add(proxy.realObjectTransform, proxy);
|
if (proxy.realObjectTransform != null)
|
||||||
|
{
|
||||||
|
_vanillaProxyBody.Add(proxy.realObjectTransform, proxy);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ProxyBody GetVanillaProxyBody(Transform t)
|
public static ProxyBody GetVanillaProxyBody(Transform t)
|
||||||
@ -46,7 +49,10 @@ namespace NewHorizons.Handlers
|
|||||||
|
|
||||||
public static void RegisterVanillaProxyOrbiter(ProxyOrbiter proxy)
|
public static void RegisterVanillaProxyOrbiter(ProxyOrbiter proxy)
|
||||||
{
|
{
|
||||||
_vanillaProxyOrbiter.Add(proxy._originalPlanetBody, proxy);
|
if (proxy._originalPlanetBody != null)
|
||||||
|
{
|
||||||
|
_vanillaProxyOrbiter.Add(proxy._originalPlanetBody, proxy);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ProxyOrbiter GetVanillaProxyOrbiter(Transform t)
|
public static ProxyOrbiter GetVanillaProxyOrbiter(Transform t)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user