Fixed client hierarchy construction to check for authority instead of controller

Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com>
This commit is contained in:
Sergey Pereslavtsev
2021-11-04 14:52:35 +00:00
parent 0aa391368e
commit 2b2e5c6367
@@ -44,7 +44,7 @@ namespace Multiplayer
GetNetBindComponent()->AddEntityCorrectionEventHandler(m_entityCorrectionEventHandler);
ParentEntityIdAddEvent(m_parentChangedEventHandler);
if (!HasController())
if (!GetNetBindComponent()->IsNetEntityRoleAuthority())
{
OnParentChanged(GetParentEntityId());
}