diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-02-27 19:37:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 19:37:29 +0100 |
commit | 347c0714c906a8391c31e45e740d05a9e31cac85 (patch) | |
tree | 8122e3fa33509d09df50fb8a78fc4e883d43f7ce /src/main/java/at/hannibal2/skyhanni/features/skillprogress | |
parent | 219cb98fb66500491b1614552042d582eff9b968 (diff) | |
download | skyhanni-347c0714c906a8391c31e45e740d05a9e31cac85.tar.gz skyhanni-347c0714c906a8391c31e45e740d05a9e31cac85.tar.bz2 skyhanni-347c0714c906a8391c31e45e740d05a9e31cac85.zip |
Fixed skill timer. (#1070)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/skillprogress')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt | 1 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillType.kt | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt b/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt index 684d65c82..d2821fc63 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt @@ -359,7 +359,6 @@ object SkillProgress { add(Renderable.clickAndHover("§7Session: §e$session ${if (xpInfo.sessionTimerActive) "" else "§c(PAUSED)"}", listOf("§eClick to reset!")) { xpInfo.sessionTimerActive = false - activeSkill.timer = null xpInfo.timeActive = 0L chat("Timer for §b${activeSkill.displayName} §ehas been reset!") }) diff --git a/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillType.kt b/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillType.kt index 8122effc7..bd44a63f3 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillType.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillType.kt @@ -6,7 +6,6 @@ import net.minecraft.init.Blocks import net.minecraft.init.Items import net.minecraft.item.Item import net.minecraft.item.ItemStack -import java.util.Timer enum class SkillType(val displayName: String, icon: Item) { COMBAT("Combat", Items.golden_sword), @@ -20,8 +19,6 @@ enum class SkillType(val displayName: String, icon: Item) { TAMING("Taming", Items.spawn_egg), ; - var timer: Timer? = null - constructor(displayName: String, block: Block) : this(displayName, Item.getItemFromBlock(block)) val item: ItemStack by lazy { Utils.createItemStack(icon, displayName) } |