From 4bddbbf56ede9dce383c216d4d045c551e757ad1 Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 8 Mar 2013 08:49:07 -0500 Subject: [PATCH] This must be handled first, else no XP is awarded if double-drops are disabled. --- .../java/com/gmail/nossr50/skills/mining/MiningManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java b/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java index 2c5ab86f3..3f70d4964 100644 --- a/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java +++ b/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java @@ -56,7 +56,9 @@ public class MiningManager extends SkillManager{ public void miningBlockCheck(BlockState blockState) { Player player = getPlayer(); - if (!Permissions.doubleDrops(player, skill)) { + applyXpGain(Mining.getBlockXp(blockState)); + + if (Permissions.doubleDrops(player, skill)) { return; } @@ -78,8 +80,6 @@ public class MiningManager extends SkillManager{ } } } - - applyXpGain(Mining.getBlockXp(blockState)); } /**