diff --git a/Fika.Core/Coop/ClientClasses/CoopClientInventoryController.cs b/Fika.Core/Coop/ClientClasses/CoopClientInventoryController.cs index 3ab471d4..02c72dfd 100644 --- a/Fika.Core/Coop/ClientClasses/CoopClientInventoryController.cs +++ b/Fika.Core/Coop/ClientClasses/CoopClientInventoryController.cs @@ -5,7 +5,6 @@ using EFT.UI; using Fika.Core.Coop.Matchmaker; using Fika.Core.Coop.Players; -using Fika.Core.Extensions; using Fika.Core.Networking; using JetBrains.Annotations; using System.IO; @@ -70,7 +69,7 @@ public override void Execute(GClass2837 operation, [CanBeNull] Callback callback return; } operationManager.operation.Dispose(); - operationManager.callback?.Fail($"Can't execute {operationManager.operation}", 1); + operationManager.callback?.Fail($"Can't execute {operationManager.operation}", 1); } else if (MatchmakerAcceptPatches.IsClient) { diff --git a/Fika.Core/Coop/Components/CoopHandler.cs b/Fika.Core/Coop/Components/CoopHandler.cs index a2a933df..b39a573c 100644 --- a/Fika.Core/Coop/Components/CoopHandler.cs +++ b/Fika.Core/Coop/Components/CoopHandler.cs @@ -1,5 +1,4 @@ -using Aki.Common.Http; -using BepInEx.Logging; +using BepInEx.Logging; using Comfort.Common; using EFT; using EFT.Interactive; diff --git a/Fika.Core/Coop/Players/CoopPlayer.cs b/Fika.Core/Coop/Players/CoopPlayer.cs index 8d3c5b50..53404a19 100644 --- a/Fika.Core/Coop/Players/CoopPlayer.cs +++ b/Fika.Core/Coop/Players/CoopPlayer.cs @@ -1071,7 +1071,7 @@ public virtual void HandleInventoryPacket(in InventoryPacket packet) OperationCallbacks.Remove(packet.ItemControllerExecutePacket.CallbackId); if (!result.Failed) { - callback(new Result(EOperationStatus.Started)); + callback(new Result(EOperationStatus.Started)); } else { diff --git a/Fika.Core/FikaPlugin.cs b/Fika.Core/FikaPlugin.cs index 4bdae119..537bc71f 100644 --- a/Fika.Core/FikaPlugin.cs +++ b/Fika.Core/FikaPlugin.cs @@ -26,10 +26,9 @@ using Fika.Core.UI; using Fika.Core.UI.Models; using Fika.Core.UI.Patches; -using System; using System.Collections.Generic; -using System.Net.Sockets; using System.Net; +using System.Net.Sockets; using System.Text; using UnityEngine; @@ -357,7 +356,7 @@ private void SetupConfig() ForceIP = Config.Bind("Network", "Force IP", "", new ConfigDescription("Forces the server when hosting to use this IP when broadcasting to the backend instead of automatically trying to fetch it. Leave empty to disable.", tags: new ConfigurationManagerAttributes() { Order = 6 })); - ForceBindIP = Config.Bind("Network", "Force Bind IP", "",new ConfigDescription("Forces the server when hosting to use this local IP when starting the server. Useful if you are hosting on a VPN. Leave empty to disable.",new AcceptableValueList(GetLocalIPAddress()), new ConfigurationManagerAttributes() { Order = 5 })); + ForceBindIP = Config.Bind("Network", "Force Bind IP", "", new ConfigDescription("Forces the server when hosting to use this local IP when starting the server. Useful if you are hosting on a VPN. Leave empty to disable.", new AcceptableValueList(GetLocalIPAddress()), new ConfigurationManagerAttributes() { Order = 5 })); AutoRefreshRate = Config.Bind("Network", "Auto Server Refresh Rate", 10f, new ConfigDescription("Every X seconds the client will ask the server for the list of matches while at the lobby screen.", new AcceptableValueRange(3f, 60f), new ConfigurationManagerAttributes() { Order = 4 })); diff --git a/Fika.Core/Networking/FikaClient.cs b/Fika.Core/Networking/FikaClient.cs index ac897354..4b91a079 100644 --- a/Fika.Core/Networking/FikaClient.cs +++ b/Fika.Core/Networking/FikaClient.cs @@ -28,7 +28,6 @@ using System.Net; using System.Net.Sockets; using UnityEngine; -using static UnityEngine.UIElements.StyleVariableResolver; namespace Fika.Core.Networking { diff --git a/Fika.Core/UI/Custom/MatchMakerUIScript.cs b/Fika.Core/UI/Custom/MatchMakerUIScript.cs index 871829f0..8c8ec3b6 100644 --- a/Fika.Core/UI/Custom/MatchMakerUIScript.cs +++ b/Fika.Core/UI/Custom/MatchMakerUIScript.cs @@ -12,7 +12,6 @@ using System.Collections; using System.Collections.Generic; using System.Net; -using System.Security.Cryptography; using TMPro; using UnityEngine; using UnityEngine.UI; @@ -185,7 +184,7 @@ private IEnumerator JoinMatch(string profileId, string serverId, Button button) { if (button != null) { - button.enabled = false; + button.enabled = false; } NotificationManagerClass.DisplayMessageNotification("Connecting to server...", iconType: EFT.Communications.ENotificationIconType.EntryPoint); @@ -216,7 +215,7 @@ private IEnumerator JoinMatch(string profileId, string serverId, Button button) if (button != null) { - button.enabled = true; + button.enabled = true; } yield break; }