Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
fixed issue where having the button as not marked as MasterOnly would not set the objects in their proper start state
  • Loading branch information
ChildoftheBeast authored Apr 2, 2021
1 parent 1a0355f commit 5bfec93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Tools/EasyLocks/EasyLocks_Button.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public class EasyLocks_Button : UdonSharpBehaviour
public void Start()
{
_localplayer = Networking.LocalPlayer.displayName;
if (Networking.IsMaster && isMasterOnly)
if (Networking.IsMaster)
{
_isSyncUnlocked = LockTargetsDefaultOff[1].activeSelf;
Setlock();
}
}

Expand Down
4 changes: 2 additions & 2 deletions Tools/EasyLocks/EasyLocks_Password.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public class EasyLocks_Password : UdonSharpBehaviour
public void Start()
{
_localplayer = Networking.LocalPlayer.displayName;
if (Networking.IsMaster && isMasterOnly)
if (Networking.IsMaster)
{
_isSyncUnlocked = LockTargetsDefaultOff[1].activeSelf;
Setlock();
}
}

Expand Down

0 comments on commit 5bfec93

Please sign in to comment.