Ejemplo n.º 1
0
        public static bool Farmer_performRenovation_Prefix(Farmer __instance, string location_name)
        {
            if (!ModEntry.config.EnableMod || !__instance.IsMainPlayer)
            {
                return(true);
            }

            GameLocation location = Game1.getLocationFromName(location_name);

            ModEntry.PMonitor.Log($"Applying renovations to {location_name}");

            ModEntry.PHelper.Content.InvalidateCache(location.mapPath);
            location.MakeMapModifications(true);

            return(false);
        }