entitystorage fixes (#5660)

This commit is contained in:
metalgearsloth
2021-12-03 21:19:53 +11:00
committed by GitHub
parent bd18574412
commit 07b2ce138d
3 changed files with 8 additions and 11 deletions

View File

@@ -373,14 +373,7 @@ namespace Content.Server.Storage.Components
return true;
}
if (!Contents.Insert(entity)) return false;
entity.Transform.LocalPosition = Vector2.Zero;
if (entity.TryGetComponent(out IPhysBody? body))
{
body.CanCollide = false;
}
return true;
return Contents.Insert(entity);
}
/// <inheritdoc />