Fixed an issue causing Hosts to not get isLocalPlayer = true
This commit is contained in:
parent
0a6e22c95e
commit
db1e200494
@ -19,7 +19,7 @@ namespace MLAPI
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return OwnerClientId == NetworkingManager.singleton.MyClientId;
|
return IsPlayerObject && (OwnerClientId == NetworkingManager.singleton.MyClientId || (OwnerClientId == -1 && NetworkingManager.singleton.isHost));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user