aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2022-10-31 10:23:53 +0000
committerGitHub <noreply@github.com>2022-10-31 11:23:53 +0100
commit41d1093d34599a903df4b4cbbd76067dc7e6ce9e (patch)
tree9bd5d806919642d5301ff2d0937428f202a1ce99 /src/main
parent20eafeea6e1f904e114f4cae6bf0e202469322fa (diff)
downloadNotEnoughUpdates-41d1093d34599a903df4b4cbbd76067dc7e6ce9e.tar.gz
NotEnoughUpdates-41d1093d34599a903df4b4cbbd76067dc7e6ce9e.tar.bz2
NotEnoughUpdates-41d1093d34599a903df4b4cbbd76067dc7e6ce9e.zip
Fix picknimbus not working for ability cooldown (#398)
* add PICKONIMBUS to pickaxe * fixed yelling at you * unsure why it was like that * Chatting * Watching
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java4
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiTextField.java2
2 files changed, 2 insertions, 4 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 f68f3c58..4fc63734 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java
@@ -150,9 +150,7 @@ public class ItemCooldowns {
} else if (internalname.contains("_DRILL_")) {
char lastChar = internalname.charAt(internalname.length() - 1);
return lastChar >= '0' && lastChar <= '9';
- } else if (internalname.equals("DIVAN_DRILL")) {
- return true;
- } else return internalname.equals("GEMSTONE_GAUNTLET");
+ } else return internalname.equals("GEMSTONE_GAUNTLET") || internalname.equals("PICKONIMBUS") || internalname.equals("DIVAN_DRILL");
}
private static void updatePickaxeCooldown() {
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiTextField.java b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiTextField.java
index 55a5a098..039256e5 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiTextField.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinGuiTextField.java
@@ -80,7 +80,7 @@ public abstract class MixinGuiTextField {
}
}
- @Inject(method = "deleteFromCursor", at = @At(value = "INVOKE", target = "Lcom/google/common/base/Predicate;apply(Ljava/lang/Object;)Z"), locals = LocalCapture.PRINT)
+ @Inject(method = "deleteFromCursor", at = @At(value = "INVOKE", target = "Lcom/google/common/base/Predicate;apply(Ljava/lang/Object;)Z", remap = false), locals = LocalCapture.CAPTURE_FAILSOFT)
public void deleteFromCursor_stringStack(int i, CallbackInfo ci, boolean bl, int j, int k, String string) {
if (NotEnoughUpdates.INSTANCE.config.misc.textFieldTweaksEnabled) {
addToStack(string);