Translations:Sprinting/17/zh
//遺留方法:玩家在之前的 Tick 中沒有向前移動,但現在移動了。必須在地面上。
if (!this.isSprinting() && this.onGround && !prevSneaking && !prevMovingForward && this.movementInput.moveForward >= f && isntHungry && !this.isUsingItem() && !this.isPotionActive(Potion.blindness)) { if (this.sprintToggleTimer <= 0 && !keyBindSprint.isKeyDown()) this.sprintToggleTimer = 7; //时间是 7 刻 else this.setSprinting(true); } //当玩家在上一刻上向前移动时激活 if (!this.isSprinting() && this.movementInput.moveForward >= f && isntHungry && !this.isUsingItem() && !this.isPotionActive(Potion.blindness) && keyBindSprint.isKeyDown()) { this.setSprinting(true); }