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; return blockState.getRawData() == 0x2 ? TreasureConfig.getInstance().excavationFromPodzol : TreasureConfig.getInstance().excavationFromDirt;
case GRASS: case GRASS:
case GRASS_PATH:
return TreasureConfig.getInstance().excavationFromGrass; return TreasureConfig.getInstance().excavationFromGrass;
case SAND: case SAND:

View File

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

View File

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