repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 8905b7615b87d9c4a8824e15a276cf68062cc21e:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 8905b7615b87d9c4a8824e15a276cf68062cc21e
Author: epoch 
Date:   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
index d528fed91471634a5ddb61619d77de46ef51a20e..
index ..340465168607daf4d8893875d86606e46229255d 100644
--- 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-----