Skip to content

Commit

Permalink
Exclude furniture from spawn rules
Browse files Browse the repository at this point in the history
  • Loading branch information
b3nk3lly committed Nov 9, 2024
1 parent fe539a9 commit 1c36ca2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion LookupAnything/DataParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ public IEnumerable<FishSpawnData> GetFishSpawnRules(GameLocation location, Vecto
if (fishData.PlayerPosition.HasValue && !fishData.PlayerPosition.GetValueOrDefault().Contains(Game1.player.TilePoint.X, Game1.player.TilePoint.Y))
continue;

ParsedItemData fish = ItemRegistry.GetData(fishData.ItemId);
// check if data is for a fish (or jelly)
ParsedItemData? fish = ItemRegistry.GetDataOrErrorItem(fishData.ItemId);
if (fish?.ObjectType != "Fish")
continue;

FishSpawnData? rules = this.GetFishSpawnRules(fish, metadata);

if (rules != null)
Expand Down

0 comments on commit 1c36ca2

Please sign in to comment.