fix: Check if RootContainer is null before referencing its members. (#5173)

This commit is contained in:
Joe 2026-01-10 16:44:55 -05:00 committed by GitHub
parent dbc08599b4
commit 5c6dae9400
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -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;