Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed May 30, 2024
1 parent de4ba40 commit 8714ba6
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 16 deletions.
1 change: 0 additions & 1 deletion Fika.Core/Coop/Components/CoopTimeManager.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Comfort.Common;
using EFT;
using EFT.UI;
using Fika.Core.Coop.GameMode;
using Fika.Core.Coop.Players;
using UnityEngine;
Expand Down
2 changes: 0 additions & 2 deletions Fika.Core/Coop/FreeCamera/FreeCamera.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using BSG.CameraEffects;
using Comfort.Common;
using EFT;
using EFT.InventoryLogic;
using Fika.Core.Coop.Components;
using Fika.Core.Coop.Players;
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
Expand Down
2 changes: 1 addition & 1 deletion Fika.Core/Coop/FreeCamera/FreeCameraController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private void ClearEffects()
Destroy(cameraClass.VisorSwitcher);
if (cameraClass.NightVision.On)
{
cameraClass.NightVision.method_1(false);
cameraClass.NightVision.method_1(false);
}
if (cameraClass.ThermalVision.On)
{
Expand Down
2 changes: 1 addition & 1 deletion Fika.Core/Coop/GameMode/CoopGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,7 @@ public override void Stop(string profileId, ExitStatus exitStatus, string exitNa
}

ExitManager stopManager = new(this, exitStatus, exitName, delay, myPlayer);

GameUI gameUI = GameUI.Instance;

exfilManager.Stop();
Expand Down
1 change: 0 additions & 1 deletion Fika.Core/Coop/PacketHandlers/ObservedPacketSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using LiteNetLib;
using LiteNetLib.Utils;
using System.Collections.Generic;
using System.Security.Policy;
using UnityEngine;

namespace Fika.Core.Coop.PacketHandlers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
using Fika.Core.Modding.Events;
using Fika.Core.Networking.Http;
using Fika.Core.Networking.Http.Models;
using LiteNetLib;
using SPT.Reflection.Patching;
using System;
using System.Linq;
Expand Down
2 changes: 0 additions & 2 deletions Fika.Core/Networking/FikaClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
using Fika.Core.Coop.Players;
using Fika.Core.Modding;
using Fika.Core.Modding.Events;
using Fika.Core.Networking.Http;
using Fika.Core.Networking.Http.Models;
using Fika.Core.Networking.Packets.GameWorld;
using Fika.Core.Networking.Packets.Player;
using HarmonyLib;
Expand Down
5 changes: 2 additions & 3 deletions Fika.Core/Networking/FikaPingingClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using BepInEx.Logging;
using EFT.UI;
using Fika.Core.Coop.Matchmaker;
using Fika.Core.Networking.Http;
using Fika.Core.Networking.Http.Models;
Expand Down Expand Up @@ -52,7 +51,7 @@ public bool Init()
remoteEndPoint = new(IPAddress.Parse(ip), port);
if (!string.IsNullOrEmpty(localIp))
{
localEndPoint = new(IPAddress.Parse(localIp), port);
localEndPoint = new(IPAddress.Parse(localIp), port);
}

NetClient.Start();
Expand All @@ -73,7 +72,7 @@ public void PingEndPoint()
NetClient.SendUnconnectedMessage(writer, remoteEndPoint);
if (localEndPoint != null)
{
NetClient.SendUnconnectedMessage(writer, localEndPoint);
NetClient.SendUnconnectedMessage(writer, localEndPoint);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Fika.Core/Networking/FikaServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public async Task Init()

SetHostRequest body = new(Ips, Port);
FikaRequestHandler.UpdateSetHost(body);

FikaEventDispatcher.DispatchEvent(new FikaServerCreatedEvent(this));
}

Expand Down
1 change: 0 additions & 1 deletion Fika.Core/Networking/Models/GetHostResponse.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Fika.Core.Networking.Http.Models
Expand Down
1 change: 0 additions & 1 deletion Fika.Core/Networking/Models/SetHostRequest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Fika.Core.Coop.Components;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Fika.Core.Networking.Http.Models
Expand Down
2 changes: 1 addition & 1 deletion Fika.Core/Utils/FikaModHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void VerifyMods()
string validationJson = RequestHandler.PostJson("/fika/client/check/mods", modValidationRequestJson);
logger.LogDebug(validationJson);

ModValidationResponse validationResult =
ModValidationResponse validationResult =
JsonConvert.DeserializeObject<ModValidationResponse>(validationJson);

// If any errors were detected we will print what has happened
Expand Down

0 comments on commit 8714ba6

Please sign in to comment.