Browse Source

baked in stats null check

lakebane-strongholds
FatBoy-DOTC 2 months ago
parent
commit
dbab4c1212
  1. 2
      src/engine/objects/Item.java

2
src/engine/objects/Item.java

@ -1249,6 +1249,8 @@ public class Item extends AbstractWorldObject {
continue; continue;
} }
AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString()); AbstractPowerAction apa = PowersManager.getPowerActionByIDString(effect.getIDString());
if(apa != null)
apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token)); apa.applyBakedInStatsForItem(this, this.getItemBase().getBakedInStats().get(token));
} }
} }

Loading…
Cancel
Save