mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 20:44:08 +00:00
Merge branch 'dev' of https://github.com/KAMKEEL/CustomNPC-Plus into dev
This commit is contained in:
commit
89464ce6c0
2 files changed
+6
No files matched your search
@@ -346,6 +346,11 @@ public class AbilityController implements IAbilityHandler {
|
||||
}
|
||||
List<AbilityVariant> ext = externalVariants.get(typeId);
|
||||
if (ext != null) {
|
||||
// If no built-in variants exist but external ones do,
|
||||
// inject a "Base" variant so the user always gets a choice
|
||||
if (result.isEmpty()) {
|
||||
result.add(new AbilityVariant("ability.variant.base", a -> {}));
|
||||
}
|
||||
result.addAll(ext);
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in new issue
Block a user