mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 16:29:39 +00:00
Fix Instanced Abilities Reloading per Usage
This commit is contained in:
1 parent
2ba2372bde
commit
54e0ca6510
8 files changed
+144
-18
No files matched your search
@@ -220,6 +220,7 @@ public class AbilityController implements IAbilityHandler {
|
||||
public void load() {
|
||||
customAbilities.clear();
|
||||
customAbilitiesById.clear();
|
||||
abilityScriptHandlers.clear();
|
||||
|
||||
File dir = getDir();
|
||||
File[] files = dir.exists() ? dir.listFiles() : null;
|
||||
@@ -470,6 +471,7 @@ public class AbilityController implements IAbilityHandler {
|
||||
private void loadChainedAbilities() {
|
||||
chainedAbilities.clear();
|
||||
chainedAbilitiesById.clear();
|
||||
chainedAbilityScriptHandlers.clear();
|
||||
|
||||
File dir = getChainedDir();
|
||||
File[] files = dir.exists() ? dir.listFiles() : null;
|
||||
|
||||
Reference in new issue
Block a user