This must be handled first, else no XP is awarded if double-drops are

disabled.
This commit is contained in:
GJ 2013-03-08 08:49:07 -05:00
parent 0654f27599
commit 4bddbbf56e

View File

@ -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));
}
/**