mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-26 05:08:34 +01:00
Revert "made the shovel only convert to grass if it's around grass already"
This reverts commit 8996cf9
This commit is contained in:
parent
8996cf9690
commit
0d362ad36c
1 changed files with 2 additions and 7 deletions
|
@ -45,13 +45,8 @@ public class ItemShovelNA extends ItemSpade implements IModItem, IModelProvider
|
||||||
|
|
||||||
if (state.getBlock() instanceof BlockDirt) {
|
if (state.getBlock() instanceof BlockDirt) {
|
||||||
if (worldIn.getBlockState(pos.up()).getMaterial() == Material.AIR) {
|
if (worldIn.getBlockState(pos.up()).getMaterial() == Material.AIR) {
|
||||||
for (EnumFacing dir : EnumFacing.HORIZONTALS) {
|
worldIn.setBlockState(pos, Blocks.GRASS.getDefaultState());
|
||||||
if (worldIn.getBlockState(pos.offset(dir)).getBlock() == Blocks.GRASS) {
|
damage = 5;
|
||||||
worldIn.setBlockState(pos, Blocks.GRASS.getDefaultState());
|
|
||||||
damage = 5;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int range = player.isSneaking() ? 0 : 1;
|
int range = player.isSneaking() ? 0 : 1;
|
||||||
|
|
Loading…
Reference in a new issue