From f77477f5d22e33b34d1723b0c89dd08244b40f85 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 24 Sep 2024 18:59:41 +0200 Subject: Improvement: Make Default GfS always on (#2584) --- src/main/java/at/hannibal2/skyhanni/api/GetFromSackAPI.kt | 2 -- .../skyhanni/config/features/inventory/GetFromSackConfig.java | 5 ----- 2 files changed, 7 deletions(-) (limited to 'src/main/java/at') 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 @@ -25,11 +25,6 @@ public class GetFromSackConfig { @FeatureToggle 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) -- cgit