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
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user