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 0d997aa..8818e1e 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 @@ -52,20 +52,21 @@ public void tick() { if (enabled) { if (!jump) { + AUTO_EAT: if (config.isIceRoadAutoEat()) { if (this.eating != null) { if (!mc.player.isUsingItem() || !this.eating.equals(mc.player.getUseItem())) { this.eating = null; mc.options.keyUse.setDown(false); } else { - return; + break AUTO_EAT; } } ItemStack mainhand = mc.player.getMainHandItem(); if (tryEat(mainhand)) { this.eating = mainhand; - mc.options.keyUp.setDown(false); + mc.options.keyUse.setDown(true); return; } } @@ -95,7 +96,6 @@ private boolean tryEat(ItemStack item) { FoodProperties food = item.getItem().getFoodProperties(); if (food != null && food.getNutrition() > 0) { if (mc.player.getFoodData().getFoodLevel() + food.getNutrition() <= 20) { - mc.options.keyUse.setDown(true); return true; } } diff --git a/gradle.properties b/gradle.properties index ada0ae3..525a805 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx2048M minecraft_version=1.16.5 archives_base_name=civmodern -mod_version=1.2 +mod_version=1.2.1 maven_group=sh.okx.civmodern architectury_version=1.14.156