From a53f1ef42873d0d69a21f0f4212a1f3c394c8b93 Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Wed, 15 May 2024 22:56:56 +0200 Subject: [PATCH] Cleanup --- Fika.Core/Coop/BotClasses/CoopBotHealthController.cs | 1 - Fika.Core/Coop/GameMode/CoopGame.cs | 4 ++-- Fika.Core/Coop/Players/CoopBot.cs | 2 +- Fika.Core/Coop/Players/CoopPlayer.cs | 2 +- Fika.Core/Networking/FikaClient.cs | 1 - 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Fika.Core/Coop/BotClasses/CoopBotHealthController.cs b/Fika.Core/Coop/BotClasses/CoopBotHealthController.cs index 2fdfddfa..67876d7f 100644 --- a/Fika.Core/Coop/BotClasses/CoopBotHealthController.cs +++ b/Fika.Core/Coop/BotClasses/CoopBotHealthController.cs @@ -2,7 +2,6 @@ using EFT; using EFT.HealthSystem; -using EFT.UI; using Fika.Core.Coop.Players; namespace Fika.Core.Coop.ClientClasses diff --git a/Fika.Core/Coop/GameMode/CoopGame.cs b/Fika.Core/Coop/GameMode/CoopGame.cs index e777098b..21e387fa 100644 --- a/Fika.Core/Coop/GameMode/CoopGame.cs +++ b/Fika.Core/Coop/GameMode/CoopGame.cs @@ -585,7 +585,7 @@ private async Task SendOrReceiveSpawnPoint() UpdateSpawnPointRequest body = new(spawnTogether ? spawnPoint.Id : ""); if (spawnTogether) { - Logger.LogInfo($"Setting Spawn Point to: {spawnPoint.Id}"); + Logger.LogInfo($"Setting Spawn Point to: {spawnPoint.Id}"); } else { @@ -611,7 +611,7 @@ private async Task SendOrReceiveSpawnPoint() { spawnPoint = spawnPointObject; } - } + } } else { diff --git a/Fika.Core/Coop/Players/CoopBot.cs b/Fika.Core/Coop/Players/CoopBot.cs index f821a2ed..147132dc 100644 --- a/Fika.Core/Coop/Players/CoopBot.cs +++ b/Fika.Core/Coop/Players/CoopBot.cs @@ -242,7 +242,7 @@ private IEnumerator WaitForPlayersToLoadBot() if (!MovementContext.IsGrounded) { FikaPlugin.Instance.FikaLogger.LogWarning($"{gameObject.name} was still not grounded after being loaded in! Forcing to be grounded."); - MovementContext.IsGrounded = true; + MovementContext.IsGrounded = true; } #if DEBUG FikaPlugin.Instance.FikaLogger.LogWarning($"{gameObject.name} is now grounded, started at Y: {randomY}, now at {Position.ToStringVerbose()}"); diff --git a/Fika.Core/Coop/Players/CoopPlayer.cs b/Fika.Core/Coop/Players/CoopPlayer.cs index ad186f65..77e6f4f2 100644 --- a/Fika.Core/Coop/Players/CoopPlayer.cs +++ b/Fika.Core/Coop/Players/CoopPlayer.cs @@ -99,7 +99,7 @@ public static async Task Create( achievementsController.Init(); achievementsController.Run(); } - + IStatisticsManager statisticsManager = new CoopClientStatisticsManager(player.Profile); await player.Init(rotation, layerName, pointOfView, profile, inventoryController, diff --git a/Fika.Core/Networking/FikaClient.cs b/Fika.Core/Networking/FikaClient.cs index 9f0f2bd9..709efb10 100644 --- a/Fika.Core/Networking/FikaClient.cs +++ b/Fika.Core/Networking/FikaClient.cs @@ -11,7 +11,6 @@ using EFT.Weather; using Fika.Core.Coop.Components; using Fika.Core.Coop.GameMode; -using Fika.Core.Coop.Matchmaker; using Fika.Core.Coop.Players; using Fika.Core.Modding; using Fika.Core.Modding.Events;