aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorLuna <me@lunya.dev>2024-09-24 18:59:41 +0200
committerGitHub <noreply@github.com>2024-09-24 18:59:41 +0200
commitf77477f5d22e33b34d1723b0c89dd08244b40f85 (patch)
tree917ac07240ca86c9a07868d4cff08d32f88887f8 /src/main/java/at/hannibal2/skyhanni
parent94e1e1fedf31f3e64856003075379867ebd7c18a (diff)
downloadskyhanni-f77477f5d22e33b34d1723b0c89dd08244b40f85.tar.gz
skyhanni-f77477f5d22e33b34d1723b0c89dd08244b40f85.tar.bz2
skyhanni-f77477f5d22e33b34d1723b0c89dd08244b40f85.zip
Improvement: Make Default GfS always on (#2584)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/api/GetFromSackAPI.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/inventory/GetFromSackConfig.java5
2 files changed, 0 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/api/GetFromSackAPI.kt b/src/main/java/at/hannibal2/skyhanni/api/GetFromSackAPI.kt
index 7407dd660..89ccfd656 100644
--- a/src/main/java/at/hannibal2/skyhanni/api/GetFromSackAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/api/GetFromSackAPI.kt
@@ -173,8 +173,6 @@ object GetFromSackAPI {
// The last parameter could be "2*3". This does not support ending with ")", but it is good enough
val argsNull = !args.last().last().isDigit()
val arguments = if (argsNull) {
- if (!config.defaultGFS) return CommandResult.WRONG_ARGUMENT to null
-
args + config.defaultAmountGFS.toString()
} else args
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/GetFromSackConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/GetFromSackConfig.java
index ee77d6664..f4b16343f 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/GetFromSackConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/GetFromSackConfig.java
@@ -26,11 +26,6 @@ public class GetFromSackConfig {
public boolean superCraftGFS = true;
@Expose
- @ConfigOption(name = "Default GfS", desc = "If you don't provide an amount, a default one will be used instead. Queued GfS needs to be on in order for this to work.")
- @ConfigEditorBoolean
- public boolean defaultGFS = false;
-
- @Expose
@ConfigOption(name = "Default Amount GfS", desc = "The default amount of items used when an amount isn't provided.")
@ConfigEditorSlider(minValue = 1, maxValue = 64, minStep = 1)
public int defaultAmountGFS = 1;