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