From 40c61149cf53cc03b9c962aa6d914f177830d3e5 Mon Sep 17 00:00:00 2001 From: Dor Date: Sat, 12 Mar 2016 08:12:27 +0200 Subject: [PATCH] Treat grass paths as grass. --- .../java/com/gmail/nossr50/skills/excavation/Excavation.java | 1 + .../java/com/gmail/nossr50/skills/herbalism/Herbalism.java | 2 ++ src/main/java/com/gmail/nossr50/util/BlockUtils.java | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/skills/excavation/Excavation.java b/src/main/java/com/gmail/nossr50/skills/excavation/Excavation.java index 1f96a80c6..9069df892 100644 --- a/src/main/java/com/gmail/nossr50/skills/excavation/Excavation.java +++ b/src/main/java/com/gmail/nossr50/skills/excavation/Excavation.java @@ -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: diff --git a/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java b/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java index df8e25eb6..ce55d3ba1 100644 --- a/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java +++ b/src/main/java/com/gmail/nossr50/skills/herbalism/Herbalism.java @@ -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; diff --git a/src/main/java/com/gmail/nossr50/util/BlockUtils.java b/src/main/java/com/gmail/nossr50/util/BlockUtils.java index 4298adeb8..c00f1815e 100644 --- a/src/main/java/com/gmail/nossr50/util/BlockUtils.java +++ b/src/main/java/com/gmail/nossr50/util/BlockUtils.java @@ -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: