GraysonnG / InfiniteSpire

A mod for Slay the Spire that adds the ability to climb forever and adds a quest log.
6 stars 6 forks source link

Update PickUpCardQuest.java #96

Open SevenDayCandle opened 1 year ago

SevenDayCandle commented 1 year ago

getTitle() would crash if no card was found. This would happen if the card no longer exists (i.e. mods were unloaded), but it would also crash for Fabricate cards because it pulls directly from CardLibrary.cards instead of using CardLibrary.getCard like the other methods in this class.

The "c" variable in getTexture() was ignored (which I am assuming was not intentional), which resulted in getCard() getting called twice in that method.