Fixed client hierarchy construction to check for authority instead of controller
Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com>
This commit is contained in:
@@ -44,7 +44,7 @@ namespace Multiplayer
|
||||
GetNetBindComponent()->AddEntityCorrectionEventHandler(m_entityCorrectionEventHandler);
|
||||
ParentEntityIdAddEvent(m_parentChangedEventHandler);
|
||||
|
||||
if (!HasController())
|
||||
if (!GetNetBindComponent()->IsNetEntityRoleAuthority())
|
||||
{
|
||||
OnParentChanged(GetParentEntityId());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user