Flashkirby / Yet-Another-Boss-Health-Bar

Terraria mod that adds onscreen health bars when fighting bosses, by popular demand.
https://forums.terraria.org/index.php?threads/yet-another-boss-health-bar.55250
MIT License
10 stars 1 forks source link

Bug when 2 bosses are spawned instantly #1

Closed JavidPack closed 7 years ago

JavidPack commented 7 years ago

Use Cheat Sheet or Heros Mod, turn on autopause, spawn 2 bosses, and it'll immediately crash.

The reason for the crash is a "An item with the same key has already been added." exception, presumably a bit of logic is off with your dictionaries.

Flashkirby commented 7 years ago

Found reason for issue: all NPCs have a whoAmI Value of 0 when spawned during autopause, causes dictionary entry clashes.

Flashkirby commented 7 years ago

Fixed in 70ba1dfd5d2f14d6a5b44f69741b5f576157f213