Fixed some issues with animations not continuing when they should

This commit is contained in:
luisc committed 2025-02-12 13:16:39 -06:00
1 parent 3b9c38124e
commit 0418aa11e4
5 files changed
+33 -16

No files matched your search

@@ -69,7 +69,15 @@ public class PlayerData implements IExtendedEntityProperties, IPlayerData {
public ScreenSize screenSize = new ScreenSize(-1,-1);
public void onLogin() {
}
//Continue playing animation for self when re-logging
AnimationData animationData = this.animationData;
if (animationData != null && animationData.isClientAnimating()) {
Animation currentAnimation = animationData.currentClientAnimation;
NBTTagCompound compound = currentAnimation.writeToNBT();
animationData.viewAnimation(currentAnimation, animationData, compound,
animationData.isClientAnimating(), currentAnimation.currentFrame, currentAnimation.currentFrameTime);
}
}
public void onLogout() {
this.partyInvites.clear();