Permalink
Browse files

Fixed tree lopper

  • Loading branch information...
me4502 committed Aug 17, 2018
1 parent 8caa4e1 commit 7059fdd8912501801abd609baf3c8f2413e377ae
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/com/sk89q/craftbook/mechanics/TreeLopper.java
@@ -11,6 +11,7 @@
import com.sk89q.craftbook.util.LocationUtil;
import com.sk89q.craftbook.util.ProtectionUtil;
import com.sk89q.util.yaml.YAMLProcessor;
import com.sk89q.worldedit.blocks.Blocks;
import com.sk89q.worldedit.bukkit.BukkitAdapter;
import com.sk89q.worldedit.util.HandSide;
import com.sk89q.worldedit.world.block.BlockCategories;
@@ -51,7 +52,7 @@ public void onBlockBreak(BlockBreakEvent event) {
CraftBookPlayer player = CraftBookPlugin.inst().wrapPlayer(event.getPlayer());
if(!enabledBlocks.contains(BukkitAdapter.adapt(event.getBlock().getBlockData()))) return;
if(!Blocks.containsFuzzy(enabledBlocks, BukkitAdapter.adapt(event.getBlock().getBlockData()))) return;
if(!enabledItems.contains(player.getItemInHand(HandSide.MAIN_HAND).getType())) return;
if(!player.hasPermission("craftbook.mech.treelopper.use")) {
if(CraftBookPlugin.inst().getConfiguration().showPermissionMessages)

0 comments on commit 7059fdd

Please sign in to comment.