mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +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;
|
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:
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user