Skip to content

Commit

Permalink
don't jump if passenger
Browse files Browse the repository at this point in the history
  • Loading branch information
okx-code committed Oct 31, 2022
1 parent 62538df commit 92faa08
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public void tick() {
mc.options.keyUp.setDown(false);
if (jump) {
jump = false;
mc.options.keyJump.setDown(false);
if (!mc.player.isPassenger()) {
mc.options.keyJump.setDown(false);
}
}
mc.options.keyUse.setDown(false);
waitingForFood = false;
Expand Down Expand Up @@ -79,10 +81,14 @@ public void tick() {
waitingForFood = false;
}

mc.options.keyJump.setDown(true);
if (!mc.player.isPassenger()) {
mc.options.keyJump.setDown(true);
}
jump = true;
} else {
mc.options.keyJump.setDown(false);
if (!mc.player.isPassenger()) {
mc.options.keyJump.setDown(false);
}
jump = false;
}
mc.options.keySprint.setDown(true);
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ minecraft_version=1.18.2
enabled_platforms=fabric,forge

archives_base_name=civmodern
mod_version=1.4.2
mod_version=1.4.3
maven_group=sh.okx.civmodern

architectury_version=4.2.50
Expand Down

0 comments on commit 92faa08

Please sign in to comment.