fix: Check if RootContainer is null before referencing its members. (#5173)
This commit is contained in:
parent
dbc08599b4
commit
5c6dae9400
|
|
@ -258,9 +258,8 @@ public partial class SharedBodySystem
|
|||
{
|
||||
if (id is null
|
||||
|| !Resolve(id.Value, ref body, logMissing: false)
|
||||
|| body.RootContainer is null // Delta-V - Fix this shitmed change
|
||||
|| body.RootContainer.ContainedEntity is null
|
||||
|| body is null // Shitmed Change
|
||||
|| body.RootContainer == default // Shitmed Change
|
||||
|| !Resolve(body.RootContainer.ContainedEntity.Value, ref rootPart))
|
||||
{
|
||||
yield break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue