mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Fix cloningsystem proxy call (#44739)
Content should check this but okay!
This commit is contained in:
parent
8331ca1b1d
commit
c6ea5ae41c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue