aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-04-17 22:08:22 +0200
committerGitHub <noreply@github.com>2024-04-17 22:08:22 +0200
commit97b62dfaa115fb3a2b11c2520a57c06d56a83459 (patch)
tree4965493bbba7d76c01cf6b3fcb03f529f4dfea45 /src/main/java/at
parentc1e10ec146db4ae372d284bd20b7f66eb42b60d4 (diff)
downloadskyhanni-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')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorRewardWarning.kt5
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
}