Fix issues in last commit

This commit is contained in:
NuclearW 2012-01-28 21:19:35 -05:00
parent 3fef87923a
commit a61efae527
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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);