repo: janusweb action: commit revision: path_from: revision_from: 8905b7615b87d9c4a8824e15a276cf68062cc21e: path_to: revision_to:
commit 8905b7615b87d9c4a8824e15a276cf68062cc21e Author: epochDate: Wed Mar 6 23:15:41 2024 +0000 jumping was failing because I had a ghost but it didnt have a body. which wasnt being checked for. diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
--- a/scripts/janusplayer.js
+++ b/scripts/janusplayer.js
@@ -400,7 +400,7 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
}
if (this.controlstate.jump && !this.jumping) {
let jumptime = 1;
- if (this.ghost && this.ghost.body.animations && this.ghost.body.animations.jump) {
+ if (this.ghost && this.ghost.body && this.ghost.body.animations && this.ghost.body.animations.jump) {
let jumpanim = this.ghost.body.animations.jump;
let jumpclip = jumpanim.getClip();
-----END OF PAGE-----