Blackjack200/Lunar

MotionA need rewrite

Closed this issue · 0 comments

   protected void jump() {
      this.motionY = (double)this.getJumpUpwardsMotion();
      if(this.isPotionActive(Potion.jump)) {
         this.motionY += (double)((float)(this.getActivePotionEffect(Potion.jump).getAmplifier() + 1) * 0.1F);
      }

      if(this.isSprinting()) {
         float f = this.rotationYaw * 0.017453292F;
         this.motionX -= (double)(MathHelper.sin(f) * 0.2F);
         this.motionZ += (double)(MathHelper.cos(f) * 0.2F);
      }

      this.isAirBorne = true;
   }

really wrong for prediction