Browse Source

null check

combat-2
FatBoy-DOTC 1 year ago
parent
commit
ff78c1443c
  1. 6
      src/engine/gameManager/NPCManager.java

6
src/engine/gameManager/NPCManager.java

@ -467,8 +467,10 @@ public enum NPCManager {
if(NPCManager._runeSetMap.containsKey(npc.runeSetID)) { if(NPCManager._runeSetMap.containsKey(npc.runeSetID)) {
for (int runeID : _runeSetMap.get(npc.runeSetID)) { for (int runeID : _runeSetMap.get(npc.runeSetID)) {
RuneBase rb = RuneBase.getRuneBase(runeID); RuneBase rb = RuneBase.getRuneBase(runeID);
CharacterRune toApply = new CharacterRune(rb, npc.getObjectUUID()); if(rb != null) {
npc.runes.add(toApply); CharacterRune toApply = new CharacterRune(rb, npc.getObjectUUID());
npc.runes.add(toApply);
}
} }
} }
} }

Loading…
Cancel
Save