From 5a84b238fc7d65be2527f7da9d03b98936d9704a Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Tue, 14 May 2024 22:42:25 +0200 Subject: [PATCH] Change log to only run in debug --- Fika.Core/Coop/Players/CoopBot.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Fika.Core/Coop/Players/CoopBot.cs b/Fika.Core/Coop/Players/CoopBot.cs index d192ab8a..137dda45 100644 --- a/Fika.Core/Coop/Players/CoopBot.cs +++ b/Fika.Core/Coop/Players/CoopBot.cs @@ -226,7 +226,9 @@ private IEnumerator WaitForPlayersToLoadBot() AIData.BotOwner.BotState = EBotState.PreActive; isStarted = true; yield return new WaitUntil(() => { return MovementContext.IsGrounded; }); - FikaPlugin.Instance.FikaLogger.LogWarning($"{gameObject.name} is now grounded, started at Y: {randomY}, now at {Position.ToStringVerbose()}"); +#if DEBUG + FikaPlugin.Instance.FikaLogger.LogWarning($"{gameObject.name} is now grounded, started at Y: {randomY}, now at {Position.ToStringVerbose()}"); +#endif ActiveHealthController.SetDamageCoeff(originalDamageCoeff); }