Added animation options and frame options subguis

This commit is contained in:
Luis C.M committed 2023-11-08 23:10:31 -06:00
1 parent c13c719ef2
commit befb85564d
5 files changed
+49 -20

No files matched your search

@@ -68,6 +68,13 @@ public class GuiNPCManageAnimations extends GuiModelInterface2 implements IScrol
data.animation.smooth = animation.smooth;
data.animation.renderTicks = animation.renderTicks;
data.animation.loop = 0;
if (this.animation.frames.size() > 0) {
Frame firstFrame = new Frame();
firstFrame.parent = data.animation;
firstFrame.readFromNBT(this.animation.frames.get(0).writeToNBT());
data.animation.addFrame(firstFrame);
}
}
if (animation != null) {