Skip to content

Commit

Permalink
Renamed EnableSeasonRestrictions to DisableSeasonRestrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoked-Fish committed Jun 9, 2024
1 parent 28485ae commit 2c4c5fe
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Framework/Patches/FarmingPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private static bool CheckItemPlantRulesPrefix(GameLocation __instance, string it
// Enable planing in all seasons
private static void SeedsIgnoreSeasonsHerePostfix(GameLocation __instance, ref bool __result)
{
if (ModEntry.Config.EnableSeasonRestrictions)
if (ModEntry.Config.DisableSeasonRestrictions)

Check failure on line 77 in Framework/Patches/FarmingPatches.cs

View workflow job for this annotation

GitHub Actions / build

'ModConfig' does not contain a definition for 'DisableSeasonRestrictions' and no accessible extension method 'DisableSeasonRestrictions' accepting a first argument of type 'ModConfig' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 77 in Framework/Patches/FarmingPatches.cs

View workflow job for this annotation

GitHub Actions / build

'ModConfig' does not contain a definition for 'DisableSeasonRestrictions' and no accessible extension method 'DisableSeasonRestrictions' accepting a first argument of type 'ModConfig' could be found (are you missing a using directive or an assembly reference?)
__result = true;
}

Expand Down
2 changes: 1 addition & 1 deletion ModEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private void OnGameLaunched(object? sender, GameLaunchedEventArgs e)
ConfigManager.AddButtonOption("Farming", "ResetPage", fieldId: "Farming");
ConfigManager.AddHorizontalSeparator();
ConfigManager.AddOption(nameof(ModConfig.EnablePlanting));
ConfigManager.AddOption(nameof(ModConfig.EnableSeasonRestrictions));
ConfigManager.AddOption(nameof(ModConfig.DisableSeasonRestrictions));

Check failure on line 119 in ModEntry.cs

View workflow job for this annotation

GitHub Actions / build

'ModConfig' does not contain a definition for 'DisableSeasonRestrictions'

Check failure on line 119 in ModEntry.cs

View workflow job for this annotation

GitHub Actions / build

'ModConfig' does not contain a definition for 'DisableSeasonRestrictions'
ConfigManager.AddOption(nameof(ModConfig.EnableDiggingAll));
ConfigManager.AddOption(nameof(ModConfig.EnableFruitTreeTweaks));
ConfigManager.AddOption(nameof(ModConfig.EnableWildTreeTweaks));
Expand Down
4 changes: 2 additions & 2 deletions i18n/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"Config.AnythingAnywhere.EnablePlanting.Name": "Enable Farming",
"Config.AnythingAnywhere.EnablePlanting.Description": "Enables farming at any location",

"Config.AnythingAnywhere.EnableSeasonRestrictions.Name": "Grow in Any Season",
"Config.AnythingAnywhere.EnableSeasonRestrictions.Description": "Removes growth restrictions on crops so they can grow in any season",
"Config.AnythingAnywhere.DisableSeasonRestrictions.Name": "Grow in Any Season",
"Config.AnythingAnywhere.DisableSeasonRestrictions.Description": "Removes growth restrictions on crops so they can grow in any season",

"Config.AnythingAnywhere.EnableDiggingAll.Name": "Hoe Anything",
"Config.AnythingAnywhere.EnableDiggingAll.Description": "Enables hoeing any tile",
Expand Down
4 changes: 2 additions & 2 deletions i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@


"Message.AnythingAnywhere.NoBuildingInInstancedLocations": "Buildings build here will not not save correctly",
"Config.AnythingAnywhere.EnableSeasonRestrictions.Name": "Grow in Any Season",
"Config.AnythingAnywhere.EnableSeasonRestrictions.Description": "Removes growth restrictions on crops so they can grow in any season"
"Config.AnythingAnywhere.DisableSeasonRestrictions.Name": "Grow in Any Season",
"Config.AnythingAnywhere.DisableSeasonRestrictions.Description": "Removes growth restrictions on crops so they can grow in any season"
}
4 changes: 2 additions & 2 deletions i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@

//TODO
"Message.AnythingAnywhere.NoBuildingInInstancedLocations": "Buildings build here will not not save correctly",
"Config.AnythingAnywhere.EnableSeasonRestrictions.Name": "Grow in Any Season",
"Config.AnythingAnywhere.EnableSeasonRestrictions.Description": "Removes growth restrictions on crops so they can grow in any season"
"Config.AnythingAnywhere.DisableSeasonRestrictions.Name": "Grow in Any Season",
"Config.AnythingAnywhere.DisableSeasonRestrictions.Description": "Removes growth restrictions on crops so they can grow in any season"
}
4 changes: 2 additions & 2 deletions i18n/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
"Config.AnythingAnywhere.EnableFreeBuild.Description": "将建造成本设置为免费",

"Message.AnythingAnywhere.NoBuildingInInstancedLocations": "Buildings build here will not not save correctly",
"Config.AnythingAnywhere.EnableSeasonRestrictions.Name": "Grow in Any Season",
"Config.AnythingAnywhere.EnableSeasonRestrictions.Description": "Removes growth restrictions on crops so they can grow in any season"
"Config.AnythingAnywhere.DisableSeasonRestrictions.Name": "Grow in Any Season",
"Config.AnythingAnywhere.DisableSeasonRestrictions.Description": "Removes growth restrictions on crops so they can grow in any season"
}

0 comments on commit 2c4c5fe

Please sign in to comment.