My test code doesnt work.. confused

So, this code was a test work (followed a tutorial made a few days ago) for a game called "lethal company" The function of the code IN THEORY, would be every frame, the speed meter (which is how long you can sprint) Would be reset to the max, meaning basically infinite sprint. Im having some issues and for some reason it is not working.. Even though a coding friend of mine does not see any issues with it..

using BepInEx;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BepInEx.Logging;
using Bombastic_Company.Patches;
using HarmonyLib;

namespace Bombastic_Company
{
    [BepInPlugin(modGUID, modName, modVersion)]
    public class BombasticCompanyBase : BaseUnityPlugin
    {
        private const string modGUID = "DFISH.BombasticCompany";
        private const string modName = "Bombastic Company";
        private const string modVersion = "1.0.0.0";

        private readonly Harmony harmony = new Harmony(modGUID);

        private static BombasticCompanyBase Instance;

        internal ManualLogSource mls;



        void Awake()
        {
            if (Instance == null)
            {
                Instance = this;

            }
            mls = BepInEx.Logging.Logger.CreateLogSource(modGUID);

            mls.LogInfo("Lethal Company has engaged Bombastic Mode");

            harmony.PatchAll(typeof(BombasticCompanyBase));
            harmony.PatchAll(typeof(PlayerControllerBPatch));
        }


    }
}


And the second part of the code doesnt fit so ill put it in the comments
Was this page helpful?