Fixed the botanist's shovel not creating grass paths

Closes #114
This commit is contained in:
Ellpeck 2020-05-12 01:57:28 +02:00
parent 03b5911ff6
commit e721b19580

View file

@ -58,7 +58,7 @@ public class ItemShovel extends ShovelItem implements IModItem, ICustomItemModel
if (player.canPlayerEdit(actualPos.offset(facing), facing, stack)) {
if (facing != Direction.DOWN
&& world.getBlockState(actualPos.up()).getMaterial() == Material.AIR
&& world.getBlockState(actualPos).getBlock() == Blocks.GRASS) {
&& world.getBlockState(actualPos).getBlock() == Blocks.GRASS_BLOCK) {
if (!world.isRemote) {
world.setBlockState(actualPos, Blocks.GRASS_PATH.getDefaultState(), 11);
}