fCraft.BlockDB.AutoToggleIfNeeded C# (CSharp) Method

AutoToggleIfNeeded() public method

If EnabledState is set to Auto, calling this auto-enables / auto-disables BlockDB depending on world's BuildSecurity.MinRank and BlockDBAutoEnableRank config key.
public AutoToggleIfNeeded ( ) : bool
return bool
        public bool AutoToggleIfNeeded()
        {
            bool oldEnabled = IsEnabled;
            EnabledState = enabledState;
            return ( oldEnabled != IsEnabled );
        }