mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
This must be handled first, else no XP is awarded if double-drops are
disabled.
This commit is contained in:
parent
0654f27599
commit
4bddbbf56e
@ -56,7 +56,9 @@ public class MiningManager extends SkillManager{
|
|||||||
public void miningBlockCheck(BlockState blockState) {
|
public void miningBlockCheck(BlockState blockState) {
|
||||||
Player player = getPlayer();
|
Player player = getPlayer();
|
||||||
|
|
||||||
if (!Permissions.doubleDrops(player, skill)) {
|
applyXpGain(Mining.getBlockXp(blockState));
|
||||||
|
|
||||||
|
if (Permissions.doubleDrops(player, skill)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,8 +80,6 @@ public class MiningManager extends SkillManager{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
applyXpGain(Mining.getBlockXp(blockState));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user