Fix Animation Syncing for Built in

This commit is contained in:
Kam committed 2026-02-20 13:13:45 -05:00
1 parent cb57e26d04
commit 14545818bd
2 files changed
+20

No files matched your search

@@ -335,6 +335,14 @@ public class CustomNpcs {
@EventHandler
public void loadComplete(FMLLoadCompleteEvent ev) {
proxy.buildPackageIndex();
// Load built-in animations on the client so they're available for ability preview.
// On dedicated servers, AnimationController.load() only runs on the server JVM,
// leaving the client without built-in animation data. In singleplayer, load()
// runs later during server start and reloads everything, so this is harmless.
if (FMLCommonHandler.instance().getSide().isClient()) {
AnimationController.Instance.loadClientBuiltIns();
}
}
@EventHandler