Skip to content

Commit

Permalink
Add traveler boots ability
Browse files Browse the repository at this point in the history
  • Loading branch information
JOOOCV committed Feb 26, 2023
1 parent 1eb05e6 commit 52bb2d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public void updatePlayerAbilityStatus(LivingUpdateEvent event) {
boolean swimming = player.isInsideOfMaterial(Material.water) || player.isInWater();
if (player.onGround || flying || swimming) {
boolean sneaking = player.isSneaking();
player.stepHeight = player.isSneaking() ? 0.5F : 1F;
player.stepHeight = sneaking ? 0.5f : 1.0f;

float speed = 0.15f * (flying ? 1.1f : 1.0f)
// * (swimming ? 1.2f : 1.0f)
Expand Down

0 comments on commit 52bb2d0

Please sign in to comment.