diff --git a/plugins.json b/plugins.json index 8f622d68..001ec5ac 100644 --- a/plugins.json +++ b/plugins.json @@ -955,7 +955,7 @@ "icon": "icon.png", "description": "Adds extra animation support to CEM Template Loader so that it is compatible with the Entity Model Features mod.", "tags": ["Minecraft: Java Edition", "Entity Models", "Animation"], - "version": "1.0.3", + "version": "1.0.4", "min_version": "4.9.0", "variant": "both", "dependencies": ["cem_template_loader"], diff --git a/plugins/emf_animation_addon/changelog.json b/plugins/emf_animation_addon/changelog.json index e9bcd5ce..dcb7d59c 100644 --- a/plugins/emf_animation_addon/changelog.json +++ b/plugins/emf_animation_addon/changelog.json @@ -50,5 +50,18 @@ ] } ] + }, + "1.0.4": { + "title": "1.0.4", + "date": "2024-08-25", + "author": "Traben", + "categories": [ + { + "title": "fixed keyframe method bug", + "list": [ + "Fixed a bug in the keyframe methods" + ] + } + ] } } diff --git a/plugins/emf_animation_addon/emf_animation_addon.js b/plugins/emf_animation_addon/emf_animation_addon.js index c5d668fb..28e0c8f9 100644 --- a/plugins/emf_animation_addon/emf_animation_addon.js +++ b/plugins/emf_animation_addon/emf_animation_addon.js @@ -6,7 +6,7 @@ author: "Traben & Ewan Howell", description: "Adds extra animation support to CEM Template Loader so that it is compatible with the Entity Model Features mod.", tags: ["Minecraft: Java Edition", "Entity Models", "Animation"], - version: "1.0.3", + version: "1.0.4", min_version: "4.9.0", variant: "both", dependencies: ["cem_template_loader"], @@ -516,7 +516,7 @@ let nextFrame = args[((deltaFloor + 1) % frameCount + frameCount) % frameCount]; let afterFrame = args[((deltaFloor + 2) % frameCount + frameCount) % frameCount]; - let individualFrameDelta = Math.frac(k); + let individualFrameDelta = optifineAnimationVariables.constants.frac(k); return catmullrom(individualFrameDelta, beforeFrame, baseFrame, nextFrame, afterFrame); }