mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 03:49:10 +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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user