Blackjack200 / Lunar

Anticheat for PocketMine-MP API-3.0.0.
GNU Affero General Public License v3.0
21 stars 7 forks source link

MotionA need rewrite #18

Closed Blackjack200 closed 3 years ago

Blackjack200 commented 3 years ago
   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