mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-04 20:39:09 +01:00
parent
03b5911ff6
commit
e721b19580
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ public class ItemShovel extends ShovelItem implements IModItem, ICustomItemModel
|
||||||
if (player.canPlayerEdit(actualPos.offset(facing), facing, stack)) {
|
if (player.canPlayerEdit(actualPos.offset(facing), facing, stack)) {
|
||||||
if (facing != Direction.DOWN
|
if (facing != Direction.DOWN
|
||||||
&& world.getBlockState(actualPos.up()).getMaterial() == Material.AIR
|
&& world.getBlockState(actualPos.up()).getMaterial() == Material.AIR
|
||||||
&& world.getBlockState(actualPos).getBlock() == Blocks.GRASS) {
|
&& world.getBlockState(actualPos).getBlock() == Blocks.GRASS_BLOCK) {
|
||||||
if (!world.isRemote) {
|
if (!world.isRemote) {
|
||||||
world.setBlockState(actualPos, Blocks.GRASS_PATH.getDefaultState(), 11);
|
world.setBlockState(actualPos, Blocks.GRASS_PATH.getDefaultState(), 11);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue