Skip to content

Commit

Permalink
fix - missing synced trigger TakeOwnership call
Browse files Browse the repository at this point in the history
  • Loading branch information
orels1 committed Nov 29, 2022
1 parent 1660e4e commit b41debb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Behaviours/Misc/SyncedTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ private void ProcessEvent(string eventName) {

if (!allowed) return;
}
if (!isOwner) {
SendCustomNetworkEvent(NetworkEventTarget.Owner, eventName);
if (!isOwner)
{
TakeOwnership();
}

switch (eventName) {
Expand Down

0 comments on commit b41debb

Please sign in to comment.