Skip to content
Permalink
Browse files

Allowed saplings and flowers to be planted on podzol

  • Loading branch information...
me4502 committed Mar 2, 2019
1 parent 8423ef5 commit b6679caa2243c42a95360a95bc2d4fd1d5f18776
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/sk89q/craftbook/mechanics/ic/gates/world/blocks/Planter.java
@@ -170,7 +170,7 @@ protected boolean itemPlantableAtBlock(ItemStack item, Block block) {
switch (item.getType()) {
case POPPY:
case DANDELION:
return block.getRelative(0, -1, 0).getType() == Material.DIRT || block.getRelative(0, -1, 0).getType() == Material.GRASS_BLOCK;
return block.getRelative(0, -1, 0).getType() == Material.DIRT || block.getRelative(0, -1, 0).getType() == Material.GRASS_BLOCK || block.getRelative(0, -1, 0).getType() == Material.PODZOL;
case WHEAT_SEEDS:
case MELON_SEEDS:
case PUMPKIN_SEEDS:
@@ -196,7 +196,7 @@ protected boolean itemPlantableAtBlock(ItemStack item, Block block) {
return false;
default:
if (Tag.SAPLINGS.isTagged(item.getType())) {
return block.getRelative(0, -1, 0).getType() == Material.DIRT || block.getRelative(0, -1, 0).getType() == Material.GRASS_BLOCK;
return block.getRelative(0, -1, 0).getType() == Material.DIRT || block.getRelative(0, -1, 0).getType() == Material.GRASS_BLOCK || block.getRelative(0, -1, 0).getType() == Material.PODZOL;
}
return false;
}

0 comments on commit b6679ca

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