mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fix issues in last commit
This commit is contained in:
parent
3fef87923a
commit
a61efae527
@ -289,7 +289,7 @@ public class mcBlockListener implements Listener
|
||||
ItemStack inhand = player.getItemInHand();
|
||||
Block block = event.getBlock();
|
||||
|
||||
Skills.monitorSkills(player);
|
||||
Skills.monitorSkills(player, PP);
|
||||
|
||||
/*
|
||||
* ABILITY PREPARATION CHECKS
|
||||
|
@ -125,6 +125,9 @@ public class Skills
|
||||
PP.setHoePreparationMode(true);
|
||||
}
|
||||
}
|
||||
public static void monitorSkills(Player player, PlayerProfile PP) {
|
||||
monitorSkills(player, PP, System.currentTimeMillis());
|
||||
}
|
||||
public static void monitorSkills(Player player, PlayerProfile PP, long curTime){
|
||||
if(PP.getHoePreparationMode() && curTime - (PP.getHoePreparationATS()*1000) >= 4000){
|
||||
PP.setHoePreparationMode(false);
|
||||
|
Loading…
Reference in New Issue
Block a user