From 82620115882a256d755fbb46e0d51b9521fcdbf1 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 19 Feb 2024 13:00:09 +0100 Subject: no longer using !isbusy return when it should be isBusy return --- .../hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt index 9436115ad..e55bbb833 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt @@ -117,7 +117,7 @@ class ComposterDisplay { private fun sendNotify() { if (!config.notifyLow.enabled) return - if (!ReminderUtils.isBusy()) return + if (ReminderUtils.isBusy()) return val storage = storage ?: return @@ -177,7 +177,7 @@ class ComposterDisplay { if (!config.warnAlmostClose) return val storage = GardenAPI.storage ?: return - if (!ReminderUtils.isBusy()) return + if (ReminderUtils.isBusy()) return if (System.currentTimeMillis() < storage.lastComposterEmptyWarningTime + 1000 * 60 * 2) return storage.lastComposterEmptyWarningTime = System.currentTimeMillis() -- cgit