Skip to content

Commit db1e200

Browse files
committed
Fixed an issue causing Hosts to not get isLocalPlayer = true
1 parent 0a6e22c commit db1e200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MLAPI/MonoBehaviours/Core/NetworkedObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public bool isLocalPlayer
1919
{
2020
get
2121
{
22-
return OwnerClientId == NetworkingManager.singleton.MyClientId;
22+
return IsPlayerObject && (OwnerClientId == NetworkingManager.singleton.MyClientId || (OwnerClientId == -1 && NetworkingManager.singleton.isHost));
2323
}
2424
}
2525

0 commit comments

Comments
 (0)