diff options
Diffstat (limited to 'src/main')
2 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/event/ChocolateFactoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/event/ChocolateFactoryConfig.java index 669184a9e..344ee625e 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/event/ChocolateFactoryConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/event/ChocolateFactoryConfig.java @@ -81,7 +81,7 @@ public class ChocolateFactoryConfig { name = "Rabbit Crush Threshold", desc = "How close should you be to your barn capacity should you be before being warned about needing to upgrade it." ) - @ConfigEditorSlider(minValue = 3, maxValue = 20, minStep = 1) + @ConfigEditorSlider(minValue = 0, maxValue = 20, minStep = 1) public int barnCapacityThreshold = 6; @Expose diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryBarnManager.kt b/src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryBarnManager.kt index e403415d2..43c276293 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryBarnManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/chocolatefactory/ChocolateFactoryBarnManager.kt @@ -45,6 +45,11 @@ object ChocolateFactoryBarnManager { fun trySendBarnFullMessage() { if (!ChocolateFactoryAPI.isEnabled()) return + + if (config.barnCapacityThreshold <= 0) { + return + } + val profileStorage = profileStorage ?: return val remainingSpace = profileStorage.maxRabbits - profileStorage.currentRabbits |