diff --git a/src/main/java/noppes/npcs/controllers/data/Animation.java b/src/main/java/noppes/npcs/controllers/data/Animation.java index 6754a3825..aafb8cdcf 100644 --- a/src/main/java/noppes/npcs/controllers/data/Animation.java +++ b/src/main/java/noppes/npcs/controllers/data/Animation.java @@ -182,6 +182,7 @@ public class Animation implements IAnimation { speed = compound.getFloat("Speed"); smooth = compound.getByte("Smooth"); loop = compound.getInteger("Loop"); + tickDuration = compound.getInteger("TickDuration"); ArrayList frames = new ArrayList(); NBTTagList list = compound.getTagList("Frames", 10); @@ -206,6 +207,7 @@ 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){ diff --git a/src/main/java/noppes/npcs/controllers/data/Frame.java b/src/main/java/noppes/npcs/controllers/data/Frame.java index 22077bf1a..033ac6692 100644 --- a/src/main/java/noppes/npcs/controllers/data/Frame.java +++ b/src/main/java/noppes/npcs/controllers/data/Frame.java @@ -135,7 +135,10 @@ public class Frame implements IFrame { customized = true; smooth = compound.getByte("Smooth"); } - if(compound.hasKey("RenderTicks")){ + + if (compound.hasKey("TickDuration")) { + this.tickDuration = compound.getInteger("TickDuration"); + } else if(compound.hasKey("RenderTicks")){ customized = true; this.tickDuration = 20; }