mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +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();
|
ItemStack inhand = player.getItemInHand();
|
||||||
Block block = event.getBlock();
|
Block block = event.getBlock();
|
||||||
|
|
||||||
Skills.monitorSkills(player);
|
Skills.monitorSkills(player, PP);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ABILITY PREPARATION CHECKS
|
* ABILITY PREPARATION CHECKS
|
||||||
|
@ -125,6 +125,9 @@ public class Skills
|
|||||||
PP.setHoePreparationMode(true);
|
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){
|
public static void monitorSkills(Player player, PlayerProfile PP, long curTime){
|
||||||
if(PP.getHoePreparationMode() && curTime - (PP.getHoePreparationATS()*1000) >= 4000){
|
if(PP.getHoePreparationMode() && curTime - (PP.getHoePreparationATS()*1000) >= 4000){
|
||||||
PP.setHoePreparationMode(false);
|
PP.setHoePreparationMode(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user