File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
common/src/main/java/sh/okx/civmodern/common/macro Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,20 +52,21 @@ public void tick() {
52
52
53
53
if (enabled ) {
54
54
if (!jump ) {
55
+ AUTO_EAT :
55
56
if (config .isIceRoadAutoEat ()) {
56
57
if (this .eating != null ) {
57
58
if (!mc .player .isUsingItem () || !this .eating .equals (mc .player .getUseItem ())) {
58
59
this .eating = null ;
59
60
mc .options .keyUse .setDown (false );
60
61
} else {
61
- return ;
62
+ break AUTO_EAT ;
62
63
}
63
64
}
64
65
65
66
ItemStack mainhand = mc .player .getMainHandItem ();
66
67
if (tryEat (mainhand )) {
67
68
this .eating = mainhand ;
68
- mc .options .keyUp .setDown (false );
69
+ mc .options .keyUse .setDown (true );
69
70
return ;
70
71
}
71
72
}
@@ -95,7 +96,6 @@ private boolean tryEat(ItemStack item) {
95
96
FoodProperties food = item .getItem ().getFoodProperties ();
96
97
if (food != null && food .getNutrition () > 0 ) {
97
98
if (mc .player .getFoodData ().getFoodLevel () + food .getNutrition () <= 20 ) {
98
- mc .options .keyUse .setDown (true );
99
99
return true ;
100
100
}
101
101
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx2048M
3
3
minecraft_version =1.16.5
4
4
5
5
archives_base_name =civmodern
6
- mod_version =1.2
6
+ mod_version =1.2.1
7
7
maven_group =sh.okx.civmodern
8
8
9
9
architectury_version =1.14.156
You can’t perform that action at this time.
0 commit comments