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);