From a5bcc3ce589e545295854dc192f267b1ba3f0d8d Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Wed, 4 Nov 2015 16:06:28 -0500 Subject: [PATCH] Correctly identify tree species. Fixes #2667 --- .../gmail/nossr50/skills/woodcutting/Woodcutting.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 8b975c2f3..bb142d29b 100644 --- a/src/main/java/com/gmail/nossr50/skills/woodcutting/Woodcutting.java +++ b/src/main/java/com/gmail/nossr50/skills/woodcutting/Woodcutting.java @@ -80,6 +80,15 @@ public final class Woodcutting { if (blockState.getData() instanceof Tree) { species = ((Tree) blockState.getData()).getSpecies(); } + if (blockState.getType() == Material.LOG_2) { + byte data = blockState.getRawData(); + if ((data & 1) != 0) { + species = TreeSpecies.ACACIA; + } + if ((data & 2) != 0) { + species = TreeSpecies.DARK_OAK; + } + } if (Config.getInstance().getWoodcuttingDoubleDropsEnabled(species)) { Misc.dropItems(blockState.getLocation(), blockState.getBlock().getDrops());