mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 19:42:19 +00:00
Refactor ability management: enhance deep copy functionality, streamline custom ability handling, and update versioning logic
This commit is contained in:
1 parent
e1eda3ce19
commit
da4ee2e20d
3 files changed
+211
-347
No files matched your search
@@ -61,7 +61,7 @@ public class AbilitySlot {
|
||||
AbilityController controller = AbilityController.Instance;
|
||||
if (controller == null) return null;
|
||||
|
||||
int currentVersion = controller.getVersion();
|
||||
int currentVersion = controller.getCustomAbilityRevision();
|
||||
if (cachedAbility != null && cachedVersion == currentVersion) {
|
||||
return cachedAbility;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user