mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 17:47:32 +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
@@ -123,6 +123,7 @@ public class AnimationController implements IAnimationHandler {
|
||||
String resourcePath = path + "/" + animName + ".json";
|
||||
try (InputStream stream = modClass.getResourceAsStream(resourcePath)) {
|
||||
if (stream == null) {
|
||||
LogWriter.error("Animation not found: " + animName.toLowerCase());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -143,6 +144,7 @@ public class AnimationController implements IAnimationHandler {
|
||||
|
||||
// Store with lowercase key for case-insensitive lookup
|
||||
builtInAnimations.put(animName.toLowerCase(), animation);
|
||||
LogWriter.info("Registered animation: " + animName.toLowerCase());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user