diff --git a/src/main/java/de/ellpeck/naturesaura/items/tools/ItemShovelNA.java b/src/main/java/de/ellpeck/naturesaura/items/tools/ItemShovelNA.java index 9ad65338..599ac351 100644 --- a/src/main/java/de/ellpeck/naturesaura/items/tools/ItemShovelNA.java +++ b/src/main/java/de/ellpeck/naturesaura/items/tools/ItemShovelNA.java @@ -45,8 +45,13 @@ public class ItemShovelNA extends ItemSpade implements IModItem, IModelProvider if (state.getBlock() instanceof BlockDirt) { if (worldIn.getBlockState(pos.up()).getMaterial() == Material.AIR) { - worldIn.setBlockState(pos, Blocks.GRASS.getDefaultState()); - damage = 5; + for (EnumFacing dir : EnumFacing.HORIZONTALS) { + if (worldIn.getBlockState(pos.offset(dir)).getBlock() == Blocks.GRASS) { + worldIn.setBlockState(pos, Blocks.GRASS.getDefaultState()); + damage = 5; + break; + } + } } } else { int range = player.isSneaking() ? 0 : 1;