Browse Source

null check

feature-region-set
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 { @@ -467,8 +467,10 @@ public enum NPCManager {
if(NPCManager._runeSetMap.containsKey(npc.runeSetID)) {
for (int runeID : _runeSetMap.get(npc.runeSetID)) {
RuneBase rb = RuneBase.getRuneBase(runeID);
CharacterRune toApply = new CharacterRune(rb, npc.getObjectUUID());
npc.runes.add(toApply);
if(rb != null) {
CharacterRune toApply = new CharacterRune(rb, npc.getObjectUUID());
npc.runes.add(toApply);
}
}
}
}

Loading…
Cancel
Save