Treat grass paths as grass.

This commit is contained in:
Dor 2016-03-12 08:12:27 +02:00
parent 4f9a463b9d
commit 40c61149cf
3 changed files with 7 additions and 0 deletions

View File

@ -25,6 +25,7 @@ public class Excavation {
return blockState.getRawData() == 0x2 ? TreasureConfig.getInstance().excavationFromPodzol : TreasureConfig.getInstance().excavationFromDirt;
case GRASS:
case GRASS_PATH:
return TreasureConfig.getInstance().excavationFromGrass;
case SAND:

View File

@ -38,6 +38,7 @@ public class Herbalism {
return true;
case DIRT:
case GRASS_PATH:
blockState.setType(Material.GRASS);
return true;
@ -148,6 +149,7 @@ public class Herbalism {
switch (blockState.getType()) {
case DIRT:
case GRASS:
case GRASS_PATH:
blockState.setType(Material.MYCEL);
return true;

View File

@ -109,6 +109,7 @@ public final class BlockUtils {
switch (blockState.getType()) {
case COBBLESTONE:
case DIRT:
case GRASS_PATH:
return true;
case SMOOTH_BRICK:
@ -208,6 +209,7 @@ public final class BlockUtils {
case CLAY:
case DIRT:
case GRASS:
case GRASS_PATH:
case GRAVEL:
case MYCEL:
case SAND:
@ -284,6 +286,7 @@ public final class BlockUtils {
switch (blockState.getType()) {
case DIRT:
case GRASS:
case GRASS_PATH:
case SOIL:
return false;
@ -318,6 +321,7 @@ public final class BlockUtils {
switch (blockState.getType()) {
case DIRT:
case GRASS:
case GRASS_PATH:
return true;
default: