Revert "added tick duration read/write to nbt"

This reverts commit fab170a9c9.
This commit is contained in:
Luis C.M committed 2024-03-24 03:36:13 -05:00
1 parent fab170a9c9
commit b52b76128c
2 files changed
+1 -6

No files matched your search

@@ -182,7 +182,6 @@ public class Animation implements IAnimation {
speed = compound.getFloat("Speed");
smooth = compound.getByte("Smooth");
loop = compound.getInteger("Loop");
tickDuration = compound.getInteger("TickDuration");
ArrayList<Frame> frames = new ArrayList<Frame>();
NBTTagList list = compound.getTagList("Frames", 10);
@@ -207,7 +206,6 @@ public class Animation implements IAnimation {
compound.setFloat("Speed", speed);
compound.setByte("Smooth", smooth);
compound.setInteger("Loop",loop);
compound.setInteger("TickDuration", tickDuration);
NBTTagList list = new NBTTagList();
for(Frame frame : frames){
@@ -135,10 +135,7 @@ public class Frame implements IFrame {
customized = true;
smooth = compound.getByte("Smooth");
}
if (compound.hasKey("TickDuration")) {
this.tickDuration = compound.getInteger("TickDuration");
} else if(compound.hasKey("RenderTicks")){
if(compound.hasKey("RenderTicks")){
customized = true;
this.tickDuration = 20;
}