diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-03 21:05:41 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-03 21:05:41 +0200 |
commit | 94521196a742a211594a1fdd29fa4dab9cbfb41f (patch) | |
tree | 8be33ad785ea72d631cf1474a8b991e35c537fff /src/main/java/at/hannibal2/skyhanni/features/misc | |
parent | f93585fe40a1dd2a1ccb2cbc160497af16006f86 (diff) | |
download | skyhanni-94521196a742a211594a1fdd29fa4dab9cbfb41f.tar.gz skyhanni-94521196a742a211594a1fdd29fa4dab9cbfb41f.tar.bz2 skyhanni-94521196a742a211594a1fdd29fa4dab9cbfb41f.zip |
Added a recent teleport pad used display and option to hide teleport pad chat message
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt index fc97a4b51..3dbba1cfb 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt @@ -5,6 +5,7 @@ import at.hannibal2.skyhanni.config.features.About import at.hannibal2.skyhanni.events.ConfigLoadEvent import at.hannibal2.skyhanni.utils.LorenzLogger import at.hannibal2.skyhanni.utils.LorenzUtils +import at.hannibal2.skyhanni.utils.LorenzUtils.onToggle import io.github.moulberry.moulconfig.processor.MoulConfigProcessor import io.github.moulberry.notenoughupdates.util.MinecraftExecutor import moe.nea.libautoupdate.* @@ -34,8 +35,7 @@ object UpdateManager { @SubscribeEvent fun onConfigLoad(event: ConfigLoadEvent) { - SkyHanniMod.feature.about.updateStream.whenChanged { oldValue, newValue -> - if (oldValue != newValue) + SkyHanniMod.feature.about.updateStream.onToggle { reset() } } |