diff options
| author | BuildTools <james.jenour@protonmail.com> | 2021-05-29 22:02:37 +0800 |
|---|---|---|
| committer | BuildTools <james.jenour@protonmail.com> | 2021-05-29 22:02:37 +0800 |
| commit | 1b172089ce502803f7644611afd618ce00dcb860 (patch) | |
| tree | bcc17b38c97dfdd5a2147aed8e7700700fec732c /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java | |
| parent | 9aa7b49d224bfde055e12bc84f6908ba0a50090d (diff) | |
| download | notenoughupdates-1b172089ce502803f7644611afd618ce00dcb860.tar.gz notenoughupdates-1b172089ce502803f7644611afd618ce00dcb860.tar.bz2 notenoughupdates-1b172089ce502803f7644611afd618ce00dcb860.zip | |
PRE28
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java index c36f619e..546f9d89 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java @@ -60,8 +60,8 @@ public class ItemCooldowns { @SubscribeEvent public void onWorldUnload(WorldEvent.Load event) { blocksClicked.clear(); + if(pickaxeCooldown > 0) pickaxeUseCooldownMillisRemaining = 60*1000; pickaxeCooldown = -1; - pickaxeUseCooldownMillisRemaining = 60*1000; } public static long getTreecapCooldownWithPet(){ @@ -127,14 +127,14 @@ public class ItemCooldowns { } } } - pickaxeCooldown = 120; + pickaxeCooldown = 0; } } @SubscribeEvent public void onChatMessage(ClientChatReceivedEvent event) { - if(PICKAXE_ABILITY_REGEX.matcher(event.message.getFormattedText()).matches()) { + if(pickaxeCooldown != 0 && PICKAXE_ABILITY_REGEX.matcher(event.message.getFormattedText()).matches()) { updatePickaxeCooldown(); pickaxeUseCooldownMillisRemaining = pickaxeCooldown*1000; } |
