Skip to content

Commit 73f2c07

Browse files
committed
add specific bait to item repository
1 parent 3ff19c8 commit 73f2c07

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

docs/release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* For players:
66
* Fixed installer not detecting Linux Flatpak install paths.
77
* Fixed content issues for non-English players in recent builds (e.g. content packs not detecting the current festival correctly).
8-
* Fixed dried items, smoked items, and picked forage not handled by console commands like `list_items` or `player_add`.
8+
* Fixed dried items, pickled forage, smoked fish, and specific bait not handled by console commands like `list_items` or `player_add`.
99

1010
* For mod authors:
1111
* Updated dependencies, including...

src/SMAPI.Mods.ConsoleCommands/Framework/ItemRepository.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public IEnumerable<SearchableItem> GetAll(string? onlyType = null, bool includeV
8585
case "(O)DriedFruit":
8686
case "(O)DriedMushrooms":
8787
case "(O)SmokedFish":
88+
case "(O)SpecificBait":
8889
break;
8990

9091
default:
@@ -190,6 +191,7 @@ select item
190191
// fish
191192
case SObject.FishCategory:
192193
yield return this.TryCreate(itemType.Identifier, $"SmokedFish/{id}", _ => objectDataDefinition.CreateFlavoredSmokedFish(item));
194+
yield return this.TryCreate(itemType.Identifier, $"SpecificBait/{id}", _ => objectDataDefinition.CreateFlavoredBait(item));
193195
break;
194196

195197
// fruit products

0 commit comments

Comments
 (0)