Merge pull request #2803 from DorCoMaNdO/master

Treat grass path as grass...
This commit is contained in:
t00thpick1 2016-03-12 12:17:04 -05:00
commit 6723b3a4c6
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: