Exemple #1
0
        public static bool CheckBundle_Prefix(
            CommunityCenter __instance,
            int area)
        {
            try
            {
                if (area < Bundles.CustomAreaInitialIndex)
                {
                    return(true);
                }

                Bundles.SetCustomAreaMutex(cc: __instance, areaNumber: area, isLocked: true);

                return(false);
            }
            catch (Exception e)
            {
                HarmonyPatches.ErrorHandler(e: e);
            }
            return(true);
        }