Cleared animation cache on logout.

This commit is contained in:
Luis C.M committed 2024-03-13 10:23:06 -05:00
1 parent e536345556
commit 9bc2fbf672
2 files changed
+5

No files matched your search

@@ -109,6 +109,10 @@ public class AnimationData implements IAnimationData {
this.cachedAnimationIDs.remove(id);
}
public void clearAnimationCache() {
this.cachedAnimationIDs.clear();
}
public void viewAnimation(Animation animation, EntityLivingBase entity, AnimationData animationData, NBTTagCompound animationNBT) {
NBTTagCompound data = animationData.writeToNBT(new NBTTagCompound());
if (animation != null) {