mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Maybe fix ghost bird
This commit is contained in:
parent
a56c927110
commit
84c3655a32
@ -339,10 +339,12 @@ namespace NewHorizons.Builder.Props
|
||||
component.gameObject.layer = Layer.IgnoreSun;
|
||||
}
|
||||
}
|
||||
// I forget why this is here
|
||||
// Else it spams a ton of NRE, happens when you try to put a non-hostile Ghostbird
|
||||
else if (component is GhostIK or GhostEffects)
|
||||
{
|
||||
UnityEngine.Object.DestroyImmediate(component);
|
||||
// For when somebody (pikmin) makes a Unity ghost bird
|
||||
if (component.transform.parent.GetComponent<GhostBrain>() == null)
|
||||
UnityEngine.Object.DestroyImmediate(component);
|
||||
return;
|
||||
}
|
||||
else if (component is DarkMatterVolume)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user