Browse Source

null check

feature-region-set
FatBoy-DOTC 1 year ago
parent
commit
ff78c1443c
  1. 2
      src/engine/gameManager/NPCManager.java

2
src/engine/gameManager/NPCManager.java

@ -467,9 +467,11 @@ 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);
if(rb != null) {
CharacterRune toApply = new CharacterRune(rb, npc.getObjectUUID()); CharacterRune toApply = new CharacterRune(rb, npc.getObjectUUID());
npc.runes.add(toApply); npc.runes.add(toApply);
} }
} }
} }
} }
}

Loading…
Cancel
Save