Skip to content
Permalink
Browse files

Grass != Grass_Block

  • Loading branch information...
me4502 committed Aug 2, 2019
1 parent 8e461b5 commit a77d3b4d5d544924094cde971e69bc744c7ad61b
@@ -130,7 +130,7 @@ public void terraform() {
}
return;
}
if (b.getType() == Material.GRASS && b.getRelative(0, 1, 0).getType() == Material.AIR && CraftBookPlugin.inst().getRandom().nextInt(15) == 0) {
if (b.getType() == Material.GRASS_BLOCK && b.getRelative(0, 1, 0).getType() == Material.AIR && CraftBookPlugin.inst().getRandom().nextInt(15) == 0) {
if (consumeBonemeal()) {
int t = CraftBookPlugin.inst().getRandom().nextInt(7);
if (t == 0) {
@@ -39,7 +39,7 @@ public String getSignTitle() {
return "CULTIVATOR";
}

SearchArea area;
private SearchArea area;

@Override
public void load() {
@@ -68,8 +68,7 @@ public boolean cultivate() {

if(b == null) return false;

if (b.getType() == Material.DIRT || b.getType() == Material.GRASS) {

if (b.getType() == Material.DIRT || b.getType() == Material.GRASS_BLOCK) {
if (b.getRelative(BlockFace.UP).getType() == Material.AIR && damageHoe()) {
b.setType(Material.FARMLAND);
return true;

0 comments on commit a77d3b4

Please sign in to comment.
You can’t perform that action at this time.