Fixed the check that prevented built-in types from showing up in NPC Abilities

This commit is contained in:
Vidal committed 2026-02-17 18:31:47 -03:00
1 parent 7ed68b7efe
commit 55149ab5d1
2 files changed
+30 -2

No files matched your search

@@ -781,8 +781,9 @@ public class NoppesUtilServer {
if (controller != null) {
int index = 0;
for (String typeId : controller.getTypes()) {
// Exclude built-in types from the NPC type list
if (controller.isBuiltInType(typeId)) continue;
if (!controller.isAllowedByNPC(typeId) && !controller.isAllowedByBoth(typeId))
continue;
map.put(typeId, index++);
}
}