mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 12:15:11 +00:00
Fix Animation Syncing for Built in
This commit is contained in:
1 parent
cb57e26d04
commit
14545818bd
2 files changed
+20
No files matched your search
@@ -213,6 +213,18 @@ public class AnimationController implements IAnimationHandler {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads built-in animations for client-side usage.
|
||||
* On dedicated servers, AnimationController.load() never runs on the client JVM,
|
||||
* so built-in animations would be missing for client-only systems like ability preview.
|
||||
* This method loads just the built-in animations (from assets and registered addons)
|
||||
* without touching user animations or world save data.
|
||||
*/
|
||||
public void loadClientBuiltIns() {
|
||||
loadBuiltInAnimations();
|
||||
loadRegisteredBuiltIns();
|
||||
}
|
||||
|
||||
private File getDir() {
|
||||
return new File(CustomNpcs.getWorldSaveDirectory(), "animations");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user