mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 01:19:41 +00:00
Fixed wrong names being registered on Animation register and added debug to anim controller
This commit is contained in:
1 parent
d826206d31
commit
dd6a27b915
2 files changed
+5
-1
No files matched your search
@@ -117,7 +117,9 @@ public class Register<T> {
|
||||
try {
|
||||
String path = "/assets/" + namespace + "/" + animationsPath;
|
||||
for (Map.Entry<String, Supplier<Animation>> entry : entries.entrySet()) {
|
||||
String name = entry.getKey().substring(entry.getKey().indexOf(namespace + ".") + 1);
|
||||
String prefix = registryKey + "." + namespace + ".";
|
||||
String key = entry.getKey();
|
||||
String name = key.substring(prefix.length());
|
||||
AnimationController.Instance.loadBuiltInAnimation(modClass, path, name);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in new issue
Block a user