LockMaster - Failed to compile: 'CodeLock' does not contain a definition for 'SetFlag' and no accessible extension method 'SetFlag' accepting a first argument of type 'CodeLock' could be found

LockMaster - Failed to compile: 'CodeLock' does not contain a definition for 'SetFlag' and no accessible extension method 'SetFlag' accepting a first argument
of type 'CodeLock' could be found (are you missing a using directive or an assembly reference?) | Line: 604, Pos: 46

what version are you running my apologies as I am just seeing the post. the reason I am asking is because I am looking at the latest version or the code I updated and SetFlag was changed a while back to SetFlagLocal but I am asking because line 604 has not setflag or setflaglocal anywhere on that line or area it isnt in the code till line 1091 and shows in this code block here

case STATIC_BBQ_PREFAB:
    if (lockovens is BaseOven && lockovens.prefabID == 28449714 || (lockovens.ShortPrefabName.Contains("bbq.static", CompareOptions.IgnoreCase)))
    {
        lockovens.isLockable = false;
        lockovens.SendNetworkUpdate();
        lockovens.SendNetworkUpdateImmediate();

        var codelock = lockovens.GetComponentInChildren<CodeLock>();
        var woodlock = lockovens.GetComponentInChildren<KeyLock>();
        if (codelock != null)
        {
            Effect.server.Run(codelock.effectUnlocked.resourcePath, codelock, 0, Vector3.zero, Vector3.forward, null, false);
            codelock.SetFlagLocal(BaseEntity.Flags.Locked, false);

            timer.Once(0.05f, delegate () {
                codelock.Kill();
            });
        }
        if (woodlock != null)
        {
            woodlock.SetFlagLocal(BaseEntity.Flags.Locked, false);

            timer.Once(0.05f, delegate () {
                woodlock.Kill();
            });
        }
    }