Fix cloningsystem proxy call (#44739)

Content should check this but okay!
This commit is contained in:
metalgearsloth 2026-07-18 11:17:28 +10:00 • committed by GitHub
parent 8331ca1b1d
commit c6ea5ae41c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,7 +132,7 @@ public sealed partial class CloningSystem : SharedCloningSystem
// If the original does not have the component, then the clone shouldn't have it either.
RemComp(clone, componentRegistration.Type);
if (EntityManager.TryGetComponent(original, componentRegistration.Type, out var sourceComp)) // Does the original have this component?
if (TryComp(original, componentRegistration.Type, out var sourceComp)) // Does the original have this component?
{
CopyComp(original, clone, sourceComp);
}