mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-13 19:14:42 +02:00
More mining restructuring.
This commit is contained in:
@ -32,14 +32,14 @@ public class MiningManager {
|
||||
return;
|
||||
}
|
||||
|
||||
Mining.miningXP(player, block);
|
||||
MiningBlockEventHandler eventHandler = new MiningBlockEventHandler(this, block);
|
||||
|
||||
eventHandler.processXP();
|
||||
|
||||
if (!Permissions.miningDoubleDrops(player)) {
|
||||
return;
|
||||
}
|
||||
|
||||
MiningBlockEventHandler eventHandler = new MiningBlockEventHandler(this, block);
|
||||
|
||||
int randomChance = 100;
|
||||
if (Permissions.luckyMining(player)) {
|
||||
randomChance = (int) (randomChance * 0.75);
|
||||
@ -63,4 +63,8 @@ public class MiningManager {
|
||||
protected Player getPlayer() {
|
||||
return player;
|
||||
}
|
||||
|
||||
protected PlayerProfile getProfile() {
|
||||
return profile;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user