From a9ea2e01372eb2c12d16227f37474caddf048a65 Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Tue, 30 Oct 2012 19:24:20 -0700 Subject: [PATCH] Resolving issue #258. --- .../com/gmail/nossr50/skills/gathering/WoodCutting.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 4e6ec3899..d2529e951 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java @@ -298,6 +298,13 @@ public class WoodCutting { int skillLevel = Users.getProfile(player).getSkillLevel(SkillType.WOODCUTTING); byte type = block.getData(); + + if((type & 0x4) == 0x4) + type ^= 0x4; + + if((type & 0x8) == 0x8) + type ^= 0x8; + Material mat = Material.getMaterial(block.getTypeId()); int randomChance = 1000;