Merge pull request #1784 from thecodingmachine/fix_user_walking_infinitely

Fixing users walking infinitely
This commit is contained in:
David Négrier 2022-01-28 11:20:37 +01:00 committed by GitHub
commit 673a18864d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ export class PlayerMovement {
oldX: this.startPosition.x,
oldY: this.startPosition.y,
direction: this.endPosition.direction,
moving: this.endPosition.moving,
moving: this.isOutdated(tick) ? false : this.endPosition.moving,
};
}
}