From 8d077ff4f2b3ce540e268ffd3d280be987d351a2 Mon Sep 17 00:00:00 2001 From: bm01 Date: Thu, 24 Jan 2013 15:37:02 +0100 Subject: [PATCH] Cleanup --- .../com/gmail/nossr50/skills/woodcutting/Woodcutting.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/woodcutting/Woodcutting.java b/src/main/java/com/gmail/nossr50/skills/woodcutting/Woodcutting.java index ac2546d86..995cd7479 100644 --- a/src/main/java/com/gmail/nossr50/skills/woodcutting/Woodcutting.java +++ b/src/main/java/com/gmail/nossr50/skills/woodcutting/Woodcutting.java @@ -144,11 +144,11 @@ public abstract class Woodcutting { } } else { - byte blockData = block.getData(); + byte itemData = extractLogItemData(block.getData()); Location location = block.getLocation(); - ItemStack item = new MaterialData(Material.LOG, Woodcutting.extractLogItemData(block.getData())).toItemStack(1); + ItemStack item = new MaterialData(Material.LOG, itemData).toItemStack(1); - switch (TreeSpecies.getByData(extractLogItemData(blockData))) { + switch (TreeSpecies.getByData(itemData)) { case GENERIC: if (Config.getInstance().getOakDoubleDropsEnabled()) { Misc.dropItem(location, item);