From 92acf62884af0bb2a33185706ad1c1b45ae6e778 Mon Sep 17 00:00:00 2001 From: GJ Date: Sun, 27 May 2012 14:40:35 -0400 Subject: [PATCH] More mod fixes for Woodcutting. --- .../com/gmail/nossr50/skills/gathering/WoodCutting.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java b/src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java index 1fe357dfc..b13d97840 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java @@ -104,10 +104,10 @@ public class WoodCutting { for (Block x : toBeFelled) { if (Misc.blockBreakSimulate(x, player, true)) { if (Config.getInstance().getBlockModsEnabled()) { - CustomBlock block = ModChecks.getCustomBlock(x); - item = block.getItemDrop(); - if (ModChecks.isCustomLogBlock(x)) { + CustomBlock block = ModChecks.getCustomBlock(x); + item = block.getItemDrop(); + if (!mcMMO.placeStore.isTrue(x)) { WoodCutting.woodCuttingProcCheck(player, x); xp = block.getXpGain(); @@ -120,6 +120,9 @@ public class WoodCutting { Misc.dropItem(x.getLocation(), item); } else if (ModChecks.isCustomLeafBlock(x)) { + CustomBlock block = ModChecks.getCustomBlock(x); + item = block.getItemDrop(); + final int SAPLING_DROP_CHANCE = 10; /* Remove the block */