mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-26 05:08:34 +01:00
fixed soulstrider hoe enchantments not being applied for the AOE effect
closes #327
This commit is contained in:
parent
b3d0d429c9
commit
453754096e
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ public class ItemHoe extends HoeItem implements IModItem, ICustomItemModel {
|
||||||
var offState = player.level().getBlockState(offset);
|
var offState = player.level().getBlockState(offset);
|
||||||
if (offState.getBlock() instanceof BushBlock || stack.getItem() == ModItems.DEPTH_HOE && offState.getBlock() instanceof LeavesBlock) {
|
if (offState.getBlock() instanceof BushBlock || stack.getItem() == ModItems.DEPTH_HOE && offState.getBlock() instanceof LeavesBlock) {
|
||||||
var entity = offState.hasBlockEntity() ? player.level().getBlockEntity(offset) : null;
|
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);
|
player.level().setBlock(offset, Blocks.AIR.defaultBlockState(), 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue