From a61efae527a8aff8a6bff589646e76dd97400202 Mon Sep 17 00:00:00 2001 From: NuclearW Date: Sat, 28 Jan 2012 21:19:35 -0500 Subject: [PATCH] Fix issues in last commit --- src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java | 2 +- src/main/java/com/gmail/nossr50/skills/Skills.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java b/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java index 8da729ebb..54034fe67 100644 --- a/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java @@ -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 diff --git a/src/main/java/com/gmail/nossr50/skills/Skills.java b/src/main/java/com/gmail/nossr50/skills/Skills.java index dee492695..4e34b8434 100644 --- a/src/main/java/com/gmail/nossr50/skills/Skills.java +++ b/src/main/java/com/gmail/nossr50/skills/Skills.java @@ -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);