Skip to content

Commit

Permalink
Merge pull request #607 from Traben-0/master
Browse files Browse the repository at this point in the history
emf plugin minor fix
  • Loading branch information
JannisX11 authored Aug 29, 2024
2 parents 9791865 + b39bd2f commit 6bdeebe
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
13 changes: 13 additions & 0 deletions plugins/emf_animation_addon/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
]
}
}
4 changes: 2 additions & 2 deletions plugins/emf_animation_addon/emf_animation_addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 6bdeebe

Please sign in to comment.