From a9024ebc6b532fa9d236133c925a275269ce1e0f Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 1 May 2012 15:25:28 -0400 Subject: [PATCH] Fixed bug with getting NO logs from Tree Feller if double drops were disabled in the config file. --- .../nossr50/skills/gathering/WoodCutting.java | 31 +------------------ 1 file changed, 1 insertion(+), 30 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 384fd5e88..b05f797a2 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java @@ -143,37 +143,8 @@ public class WoodCutting { x.setData((byte) 0x0); x.setType(Material.AIR); - Config configInstance = Config.getInstance(); - /* Drop the block */ - switch (species) { - case GENERIC: - if (configInstance.getOakDoubleDropsEnabled()) { - Misc.mcDropItem(x.getLocation(), item); - } - break; - - case REDWOOD: - if (configInstance.getSpruceDoubleDropsEnabled()) { - Misc.mcDropItem(x.getLocation(), item); - } - break; - - case BIRCH: - if (configInstance.getBirchDoubleDropsEnabled()) { - Misc.mcDropItem(x.getLocation(), item); - } - break; - - case JUNGLE: - if (configInstance.getJungleDoubleDropsEnabled()) { - Misc.mcDropItem(x.getLocation(), item); - } - break; - - default: - break; - } + Misc.mcDropItem(x.getLocation(), item); } else if (x.getType() == Material.LEAVES) { final int SAPLING_DROP_CHANCE = 10;