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