Added render ticks option for frames, inherited from its animation parent if not customized.

This commit is contained in:
Luis C.M committed 2023-01-18 21:35:39 -06:00
1 parent f504424fd2
commit 5e5bf2eb1c
2 files changed
+19 -2

No files matched your search

@@ -87,7 +87,7 @@ public class ClientEventHandler {
if (data != null && data.isActive()) {
Animation animation = data.animation;
if (animation.renderTicks && data.isActive()) {
if (data.isActive() && animation.currentFrame().useRenderTicks()) {
animation.increaseTime();
}
}
@@ -105,7 +105,7 @@ public class ClientEventHandler {
if (data != null && data.isActive()) {
Animation animation = data.animation;
if (!animation.renderTicks && data.isActive()) {
if (data.isActive() && !animation.currentFrame().useRenderTicks()) {
animation.increaseTime();
}
}