diff options
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/fishing/SeaCreatureTrackerConfig.java | 5 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/SeaCreatureTrackerConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/SeaCreatureTrackerConfig.java index 91c26aa21..4558e1413 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/SeaCreatureTrackerConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/SeaCreatureTrackerConfig.java @@ -27,4 +27,9 @@ public class SeaCreatureTrackerConfig { @ConfigOption(name = "Hide Chat", desc = "Hide the chat messages when catching a sea creature.") @ConfigEditorBoolean public boolean hideChat = false; + + @Expose + @ConfigOption(name = "Count Double", desc = "Count double hook catches as two catches.") + @ConfigEditorBoolean + public boolean countDouble = true; } diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt index 6a1e1a382..c9168c306 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/tracker/SeaCreatureTracker.kt @@ -42,7 +42,7 @@ object SeaCreatureTracker { if (!isEnabled()) return tracker.modify { - val amount = if (event.doubleHook) 2 else 1 + val amount = if (event.doubleHook && config.countDouble) 2 else 1 it.amount.addOrPut(event.seaCreature.name, amount) } |