planet destruction: also exclude probe

This commit is contained in:
JohnCorby 2023-08-04 19:31:41 -07:00
parent 76705a5b37
commit 42bbe4bcce

View File

@ -60,7 +60,7 @@ namespace NewHorizons.Handlers
// Collect all rigid bodies and proxies // Collect all rigid bodies and proxies
foreach (var rigidbody in CenterOfTheUniverse.s_rigidbodies) foreach (var rigidbody in CenterOfTheUniverse.s_rigidbodies)
{ {
if (rigidbody.name is not "Player_Body" && rigidbody.name is not "Ship_Body") if (rigidbody.name is not ("Player_Body" or "Probe_Body" or "Ship_Body"))
{ {
toDisable.Add(rigidbody.gameObject); toDisable.Add(rigidbody.gameObject);
} }