mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Treat grass paths as grass.
This commit is contained in:
parent
4f9a463b9d
commit
40c61149cf
@ -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:
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user