v0.9.3c: fixed Talent.onItemCollected being called on rankings load

This commit is contained in:
Evan Debenham 2021-06-21 20:34:11 -04:00
parent 288fcb0a72
commit f9f24361d4

View File

@ -205,7 +205,9 @@ public class Item implements Bundlable {
if (isSimilar( item )) {
item.merge( this );
item.updateQuickslot();
Talent.onItemCollected( Dungeon.hero, item );
if (Dungeon.hero != null && Dungeon.hero.isAlive()) {
Talent.onItemCollected(Dungeon.hero, item);
}
return true;
}
}