diff --git a/Assets/Scripts/Player/PlayerInteractionHandler.cs b/Assets/Scripts/Player/PlayerInteractionHandler.cs index 60393ce..249d499 100644 --- a/Assets/Scripts/Player/PlayerInteractionHandler.cs +++ b/Assets/Scripts/Player/PlayerInteractionHandler.cs @@ -198,14 +198,14 @@ public class PlayerInteractionHandler : NetworkBehaviour if (Input.GetButtonDown("Fire3")&&inputEnbaled) if (!IsCarrying) { - - SwitchWeaponMode(); - /*GunEnabled = !GunEnabled; + if(!IsServer) + SwitchWeaponMode(); + GunEnabled = !GunEnabled; if (!GunEnabled) pistol.Disable(); pistol.gameObject.SetActive(GunEnabled); if (GunEnabled) - pistol.Enable();*/ + pistol.Enable(); } if (GunEnabled)