mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 13:52:23 +00:00
Initial commit for first person animations, still need to debug and fix.
This commit is contained in:
1 parent
97d3df9f38
commit
0ee066b974
5 files changed
+359
-1
No files matched your search
@@ -25,6 +25,9 @@ public class ConfigMixin
|
||||
public static Property AnimationMixinProperty;
|
||||
public static boolean AnimationMixin = true;
|
||||
|
||||
public static Property FirstPersonAnimationMixinProperty;
|
||||
public static boolean FirstPersonAnimationMixin = true;
|
||||
|
||||
public static void init(File configFile)
|
||||
{
|
||||
config = new Configuration(configFile);
|
||||
@@ -39,6 +42,12 @@ public class ConfigMixin
|
||||
AnimationMixinProperty = config.get(CLIENT, "Animation Mixin", true, "Enables mixins for the ModelRenderer and RenderPlayer classes, allowing for additional animation functionality in the API. If crashes or visual errors occur, please disable.");
|
||||
AnimationMixin = AnimationMixinProperty.getBoolean(true);
|
||||
|
||||
if (AnimationMixin) {
|
||||
FirstPersonAnimationMixinProperty = config.get(CLIENT, "First Person Animation Mixin", true, "Enables mixins for the ItemRenderer class, allowing for animations to be visible in first person. Can only be enabled if the animation mixin is enabled. If crashes or visual errors occur, please disable.");
|
||||
FirstPersonAnimationMixin = FirstPersonAnimationMixinProperty.getBoolean(true);
|
||||
} else {
|
||||
FirstPersonAnimationMixin = false;
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user