소스 검색

Resolving issue #258.

Glitchfinder 12 년 전
부모
커밋
a9ea2e0137
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java

+ 7 - 0
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;