aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-16 13:21:32 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-16 13:21:32 +0200
commitda105780416cca59df08475920ff894de70f29ff (patch)
treeb76ecdd9e06a5420cc4e9b80d1809589d09495a8 /src/main/java/at/hannibal2/skyhanni
parentb155103abb08a9d54d91cc1d141bce8994f69a89 (diff)
downloadskyhanni-da105780416cca59df08475920ff894de70f29ff.tar.gz
skyhanni-da105780416cca59df08475920ff894de70f29ff.tar.bz2
skyhanni-da105780416cca59df08475920ff894de70f29ff.zip
revert freezeCooldown migration testing
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/AshfangConfig.java2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangFreezeCooldown.kt10
2 files changed, 3 insertions, 9 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/AshfangConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/AshfangConfig.java
index a79bb1d03..d21328d3b 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/AshfangConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/AshfangConfig.java
@@ -14,7 +14,7 @@ public class AshfangConfig {
@ConfigOption(name = "Freeze", desc = "Show the cooldown for how long Ashfang blocks your abilities.")
@ConfigEditorBoolean
@FeatureToggle
- public boolean brrrrItsSoColdCooldownCooldown = false;
+ public boolean freezeCooldown = false;
@Expose
public Position freezeCooldownPos = new Position(10, 10, false, true);
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangFreezeCooldown.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangFreezeCooldown.kt
index 264b443eb..bb766f36c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangFreezeCooldown.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/nether/ashfang/AshfangFreezeCooldown.kt
@@ -1,7 +1,6 @@
package at.hannibal2.skyhanni.features.nether.ashfang
import at.hannibal2.skyhanni.SkyHanniMod
-import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator
import at.hannibal2.skyhanni.events.GuiRenderEvent
import at.hannibal2.skyhanni.events.LorenzChatEvent
import at.hannibal2.skyhanni.features.damageindicator.BossType
@@ -34,7 +33,7 @@ class AshfangFreezeCooldown {
val remainingLong = maxDuration - duration
if (remainingLong > 0) {
- var format = TimeUtils.formatDuration(remainingLong, showMilliSeconds = true)
+ val format = TimeUtils.formatDuration(remainingLong, showMilliSeconds = true)
SkyHanniMod.feature.ashfang.freezeCooldownPos.renderString(
"§cAshfang Freeze: §a$format",
posLabel = "Ashfang Freeze Cooldown"
@@ -42,13 +41,8 @@ class AshfangFreezeCooldown {
}
}
- @SubscribeEvent
- fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) {
- event.move(0, "ashfang.freezeCooldown", "ashfang.brrrrItsSoColdCooldownCooldown")
- }
-
private fun isEnabled(): Boolean {
- return LorenzUtils.inSkyBlock && SkyHanniMod.feature.ashfang.brrrrItsSoColdCooldownCooldown &&
+ return LorenzUtils.inSkyBlock && SkyHanniMod.feature.ashfang.freezeCooldown &&
DamageIndicatorManager.isBossSpawned(BossType.NETHER_ASHFANG)
}
} \ No newline at end of file