fixed soulstrider hoe enchantments not being applied for the AOE effect

closes #327
This commit is contained in:
Ell 2023-11-13 18:28:37 +01:00
parent b3d0d429c9
commit 453754096e

View file

@ -96,7 +96,7 @@ public class ItemHoe extends HoeItem implements IModItem, ICustomItemModel {
var offState = player.level().getBlockState(offset);
if (offState.getBlock() instanceof BushBlock || stack.getItem() == ModItems.DEPTH_HOE && offState.getBlock() instanceof LeavesBlock) {
var entity = offState.hasBlockEntity() ? player.level().getBlockEntity(offset) : null;
Block.dropResources(offState, player.level(), offset, entity, null, ItemStack.EMPTY);
Block.dropResources(offState, player.level(), offset, entity, null, stack);
player.level().setBlock(offset, Blocks.AIR.defaultBlockState(), 3);
}
}