From a28e154a24f1e8df89f85894374407697f6c54b5 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 21 Mar 2021 17:42:39 +0100 Subject: [PATCH] Fixed the botanist's hoe not creating seeds Closes #198 --- src/main/java/de/ellpeck/naturesaura/items/tools/ItemHoe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/naturesaura/items/tools/ItemHoe.java b/src/main/java/de/ellpeck/naturesaura/items/tools/ItemHoe.java index fefc0530..8004eac7 100644 --- a/src/main/java/de/ellpeck/naturesaura/items/tools/ItemHoe.java +++ b/src/main/java/de/ellpeck/naturesaura/items/tools/ItemHoe.java @@ -37,7 +37,7 @@ public class ItemHoe extends HoeItem implements IModItem, ICustomItemModel { if (this == ModItems.INFUSED_IRON_HOE) { World world = context.getWorld(); ActionResultType result = super.onItemUse(context); - if (!world.isRemote && result == ActionResultType.SUCCESS) { + if (!world.isRemote && result.isSuccessOrConsume()) { ItemStack seed = ItemStack.EMPTY; Random random = world.getRandom(); BlockPos pos = context.getPos();