diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-04-17 22:08:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-17 22:08:22 +0200 |
commit | 97b62dfaa115fb3a2b11c2520a57c06d56a83459 (patch) | |
tree | 4965493bbba7d76c01cf6b3fcb03f529f4dfea45 /src/main/java/at/hannibal2/skyhanni | |
parent | c1e10ec146db4ae372d284bd20b7f66eb42b60d4 (diff) | |
download | skyhanni-97b62dfaa115fb3a2b11c2520a57c06d56a83459.tar.gz skyhanni-97b62dfaa115fb3a2b11c2520a57c06d56a83459.tar.bz2 skyhanni-97b62dfaa115fb3a2b11c2520a57c06d56a83459.zip |
Fix: hotkey name crash in vistior (#1478)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt index 641794ce7..61a075bfd 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt @@ -9,6 +9,7 @@ import at.hannibal2.skyhanni.features.garden.visitor.VisitorAPI.REFUSE_SLOT import at.hannibal2.skyhanni.features.garden.visitor.VisitorAPI.VisitorBlockReason import at.hannibal2.skyhanni.features.garden.visitor.VisitorAPI.lastClickedNpc import at.hannibal2.skyhanni.utils.ItemUtils.name +import at.hannibal2.skyhanni.utils.KeyboardManager import at.hannibal2.skyhanni.utils.KeyboardManager.isKeyHeld import at.hannibal2.skyhanni.utils.LorenzColor import at.hannibal2.skyhanni.utils.NumberUtil @@ -17,8 +18,6 @@ import net.minecraft.item.ItemStack import net.minecraftforge.event.entity.player.ItemTooltipEvent import net.minecraftforge.fml.common.eventhandler.EventPriority import net.minecraftforge.fml.common.eventhandler.SubscribeEvent -import org.lwjgl.input.Keyboard - class VisitorRewardWarning { private val config get() = VisitorAPI.config.rewardWarning @@ -106,7 +105,7 @@ class VisitorRewardWarning { if (blockReason == VisitorBlockReason.CHEAP_COPPER || blockReason == VisitorBlockReason.EXPENSIVE_COPPER) "${blockReason.description} §7(§6$pricePerCopper §7per)" else blockReason.description ) - blockedToolTip.add(" §7(Bypass by holding ${Keyboard.getKeyName(config.bypassKey)})") + blockedToolTip.add(" §7(Bypass by holding ${KeyboardManager.getKeyName(config.bypassKey)})") visitor.blockedLore = blockedToolTip } |