From 92faa08d7a670afad135bbff82bb5db9d8113033 Mon Sep 17 00:00:00 2001 From: okx-code Date: Mon, 31 Oct 2022 23:59:19 +0000 Subject: [PATCH] don't jump if passenger --- .../sh/okx/civmodern/common/macro/IceRoadMacro.java | 12 +++++++++--- gradle.properties | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/sh/okx/civmodern/common/macro/IceRoadMacro.java b/common/src/main/java/sh/okx/civmodern/common/macro/IceRoadMacro.java index 3e49fac..6b96382 100644 --- a/common/src/main/java/sh/okx/civmodern/common/macro/IceRoadMacro.java +++ b/common/src/main/java/sh/okx/civmodern/common/macro/IceRoadMacro.java @@ -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; @@ -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); diff --git a/gradle.properties b/gradle.properties index 44a7778..5c8e9b8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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