diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-19 09:50:51 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-19 09:50:51 +0200 |
commit | 3c9a36985344f748628c763c1898452727a8d4cc (patch) | |
tree | c771709386134a3ca2bc4be2d1934211a0efbfcd /src/main/java/at/hannibal2/skyhanni/test/TestShowSlotNumber.kt | |
parent | 454c1e59167851b40b9d7a6fccd75d7bedcf194c (diff) | |
download | skyhanni-3c9a36985344f748628c763c1898452727a8d4cc.tar.gz skyhanni-3c9a36985344f748628c763c1898452727a8d4cc.tar.bz2 skyhanni-3c9a36985344f748628c763c1898452727a8d4cc.zip |
Replacing Keyboard.isKeyDown and KeybindHelper.isKeyDown with OSUtils.isKeyHeld
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test/TestShowSlotNumber.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/TestShowSlotNumber.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/TestShowSlotNumber.kt b/src/main/java/at/hannibal2/skyhanni/test/TestShowSlotNumber.kt index be202e20d..115cef414 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/TestShowSlotNumber.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/TestShowSlotNumber.kt @@ -2,14 +2,14 @@ package at.hannibal2.skyhanni.test import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.RenderInventoryItemTipEvent +import at.hannibal2.skyhanni.utils.OSUtils import net.minecraftforge.fml.common.eventhandler.SubscribeEvent -import org.lwjgl.input.Keyboard class TestShowSlotNumber { @SubscribeEvent fun onRenderItemTip(event: RenderInventoryItemTipEvent) { - if (Keyboard.isKeyDown(SkyHanniMod.feature.dev.showSlotNumberKey)) { + if (OSUtils.isKeyHeld(SkyHanniMod.feature.dev.showSlotNumberKey)) { val slotIndex = event.slot.slotIndex event.stackTip = "$slotIndex" } |