Skip to content

Commit

Permalink
Merge pull request GTNewHorizons#27 from JOOOCV/master
Browse files Browse the repository at this point in the history
Add traveler boots ability
  • Loading branch information
Dream-Master authored Feb 26, 2023
2 parents 3da466e + 752f663 commit 4d2ed91
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +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 = 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 4d2ed91

Please sign in to comment.