diff --git a/Fika.Core/Coop/BTR/FikaBTRManager_Client.cs b/Fika.Core/Coop/BTR/FikaBTRManager_Client.cs index d1fc160e..a3db1287 100644 --- a/Fika.Core/Coop/BTR/FikaBTRManager_Client.cs +++ b/Fika.Core/Coop/BTR/FikaBTRManager_Client.cs @@ -4,7 +4,6 @@ using EFT.AssetsManager; using EFT.GlobalEvents; using EFT.InventoryLogic; -using EFT.UI; using EFT.Vehicle; using Fika.Core.Coop.Components; using Fika.Core.Coop.Players; @@ -426,7 +425,7 @@ private void DisableServerSideObjects() Collider clientRootCollider = clientColliders.First(x => x.gameObject.name == "Root"); // Retrieve all TerrainColliders - List terrainColliders = new List(); + List terrainColliders = new(); foreach (GPUInstancerManager manager in GPUInstancerManager.activeManagerList) { diff --git a/Fika.Core/Coop/BTR/FikaBTRManager_Host.cs b/Fika.Core/Coop/BTR/FikaBTRManager_Host.cs index e6048ec0..fa9dfa96 100644 --- a/Fika.Core/Coop/BTR/FikaBTRManager_Host.cs +++ b/Fika.Core/Coop/BTR/FikaBTRManager_Host.cs @@ -564,7 +564,7 @@ private void DisableServerSideObjects() Collider clientRootCollider = clientColliders.First(x => x.gameObject.name == "Root"); // Retrieve all TerrainColliders - List terrainColliders = new List(); + List terrainColliders = new(); foreach (GPUInstancerManager manager in GPUInstancerManager.activeManagerList) { diff --git a/Fika.Core/Coop/GameMode/CoopGame.cs b/Fika.Core/Coop/GameMode/CoopGame.cs index e6883e64..2625555e 100644 --- a/Fika.Core/Coop/GameMode/CoopGame.cs +++ b/Fika.Core/Coop/GameMode/CoopGame.cs @@ -35,7 +35,6 @@ using LiteNetLib.Utils; using Newtonsoft.Json; using SPT.Common.Http; -using SPT.Reflection.Utils; using SPT.SinglePlayer.Models.Progression; using SPT.SinglePlayer.Utils.Healing; using SPT.SinglePlayer.Utils.Insurance; @@ -1054,7 +1053,7 @@ private async Task CreateLocalPlayer() UpdateQueue, eupdateMode, Player.EUpdateMode.Auto, BackendConfigAbstractClass.Config.CharacterController.ClientPlayerMode, new Func(Class1384.class1384_0.method_3), new Func(Class1384.class1384_0.method_4), statisticsManager, null, null); - + myPlayer.OnEpInteraction += OnEpInteraction; return myPlayer; diff --git a/Fika.Core/Coop/Players/CoopPlayer.cs b/Fika.Core/Coop/Players/CoopPlayer.cs index 5fbf1aec..e1d2414c 100644 --- a/Fika.Core/Coop/Players/CoopPlayer.cs +++ b/Fika.Core/Coop/Players/CoopPlayer.cs @@ -113,7 +113,7 @@ await player.Init(rotation, layerName, pointOfView, profile, inventoryController player._animators[0].enabled = true; - player.Profile.Info.MainProfileNickname = FikaBackendUtils.PMCName; + player.Profile.Info.MainProfileNickname = FikaBackendUtils.PMCName; return player; }