Fixed the botanist's hoe not creating seeds

Closes #198
This commit is contained in:
Ell 2021-03-21 17:42:39 +01:00
parent 2c4c868982
commit a28e154a24

View file

@ -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();