Explorar o código

Using an axe is required to earn Woodcutting XP

Not really sure why or when this check had gone missing..
TfT_02 %!s(int64=11) %!d(string=hai) anos
pai
achega
8256f5461c

+ 1 - 1
src/main/java/com/gmail/nossr50/listeners/BlockListener.java

@@ -182,7 +182,7 @@ public class BlockListener implements Listener {
         }
         }
 
 
         /* WOOD CUTTING */
         /* WOOD CUTTING */
-        else if (BlockUtils.isLog(blockState) && SkillType.WOODCUTTING.getPermissions(player) && !mcMMO.getPlaceStore().isTrue(blockState)) {
+        else if (BlockUtils.isLog(blockState) && ItemUtils.isAxe(heldItem) && SkillType.WOODCUTTING.getPermissions(player) && !mcMMO.getPlaceStore().isTrue(blockState)) {
             WoodcuttingManager woodcuttingManager = mcMMOPlayer.getWoodcuttingManager();
             WoodcuttingManager woodcuttingManager = mcMMOPlayer.getWoodcuttingManager();
 
 
             if (woodcuttingManager.canUseTreeFeller(heldItem)) {
             if (woodcuttingManager.canUseTreeFeller(heldItem)) {