mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 23:09:05 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
f91baaa6f6
1 file changed
+3
-1
@@ -55,8 +55,10 @@ public class Register<T> {
|
||||
|
||||
public void register() {
|
||||
try {
|
||||
String path = "/assets/" + namespace + "/" + animationsPath;
|
||||
for (Map.Entry<String, Supplier<Animation>> entry : entries.entrySet()) {
|
||||
AnimationController.Instance.loadBuiltInAnimation(modClass, animationsPath, entry.getKey());
|
||||
String name = entry.getKey().substring(entry.getKey().indexOf(":"));
|
||||
AnimationController.Instance.loadBuiltInAnimation(modClass, path, name);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LogWriter.error("Error scanning built-in animations folder", e);
|
||||
|
||||
Reference in new issue
Block a user