Skip to content
This repository was archived by the owner on Jan 3, 2020. It is now read-only.

Commit bfbe41d

Browse files
committed
bug fix
1 parent d9970c7 commit bfbe41d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/java/org/devinprogress/autoharvest/CropManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static boolean isCropMature(World w, BlockPos pos, IBlockState stat, Bloc
8585
if (b instanceof BlockCrops) {
8686
return ((BlockCrops) b).isMaxAge(stat);
8787
} else if (b == NETHER_WART) {
88-
return b.getMetaFromState(stat) >= 7;
88+
return b.getMetaFromState(stat) >= 3;
8989
} else if (b == REED_BLOCK) {
9090
Block blockDown = w.getBlockState(pos.down()).getBlock();
9191
Block blockDown2 = w.getBlockState(pos.down(2)).getBlock();

src/main/java/org/devinprogress/autoharvest/TickListener.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ private ItemStack tryFillItemInHand() {
126126
break;
127127
}
128128
}
129+
} else {
130+
return null;
129131
}
130132
if (supplmentIdx < 0) {
131133
AutoHarvest.msg("notify.lack_of_seed");
@@ -170,6 +172,7 @@ private void plantTick() {
170172
EnumHand.MAIN_HAND);
171173
lastUsedItem = handItem;
172174
minusOneInHand();
175+
return;
173176
}
174177
}
175178
}

0 commit comments

Comments
 (0)