From 179c75b85239261e75fae9e353ef6ddf34ae611a Mon Sep 17 00:00:00 2001 From: molleindustria Date: Mon, 6 Apr 2020 09:56:02 -0400 Subject: [PATCH] Update client.js --- public/client.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/public/client.js b/public/client.js index 904897c..c76ce00 100644 --- a/public/client.js +++ b/public/client.js @@ -1515,9 +1515,12 @@ function Player(p) { this.sprite.visible = false; this.stopWalkingAnimation = function () { - this.sprite.changeAnimation("emote"); - this.sprite.animation.changeFrame(0); - this.sprite.animation.stop(); + + if (this.sprite.getAnimationLabel() == "walk") { + this.sprite.changeAnimation("emote"); + this.sprite.animation.changeFrame(0); + this.sprite.animation.stop(); + } } this.playWalkingAnimation = function () {