Skip to content

Commit

Permalink
refactor(AutoFish): use Terraria.ID.ItemID.Count instead of magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
LaoSparrow committed Nov 11, 2024
1 parent cf387e9 commit 47483f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AutoFish/AutoFish.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private static void ControlFishing(ProjectileAiUpdateEventArgs args, TSPlayer pl
if (Config.Random)
{
var rm = new Random();
var id = rm.Next(1, 5455);
var id = rm.Next(1, ItemID.Count - 1);
args.Projectile.localAI[1] = id;
}

Expand Down

0 comments on commit 47483f9

Please sign in to comment.