diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbigtree.java b/Essentials/src/com/earth2me/essentials/commands/Commandbigtree.java index 93c5dff53..b4d5066e9 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandbigtree.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandbigtree.java @@ -34,7 +34,7 @@ public class Commandbigtree extends EssentialsCommand { } final Location loc = LocationUtil.getTarget(user.getBase()).add(0, 1, 0); - if (!user.getWorld().getBlockAt(loc).isPassable()) { + if (loc.getBlock().getType().isSolid()) { throw new Exception(tl("bigTreeFailure")); } final boolean success = user.getWorld().generateTree(loc, tree); diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtree.java b/Essentials/src/com/earth2me/essentials/commands/Commandtree.java index b2545c715..fad9eb726 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtree.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtree.java @@ -43,7 +43,7 @@ public class Commandtree extends EssentialsCommand { } final Location loc = LocationUtil.getTarget(user.getBase()).add(0, 1, 0); - if (!user.getWorld().getBlockAt(loc).isPassable()) { + if (loc.getBlock().getType().isSolid()) { throw new Exception(tl("treeFailure")); }