diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-21 00:24:33 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-21 00:24:53 +0200 |
commit | 43575ec3781bc617975f853df85294575875cfab (patch) | |
tree | d48742b9f8ffc883a79c26789763483293a94f0d /src/main/java/at/hannibal2/skyhanni/config | |
parent | 5ecf7f0e14f148f5c14952d98969f4033060bb88 (diff) | |
download | skyhanni-43575ec3781bc617975f853df85294575875cfab.tar.gz skyhanni-43575ec3781bc617975f853df85294575875cfab.tar.bz2 skyhanni-43575ec3781bc617975f853df85294575875cfab.zip |
Control + click in composter overlay opens bazaar search and copies required amount to clipboard.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt b/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt index 3dead0a26..86e4f790f 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/core/config/gui/GuiPositionEditor.kt @@ -22,6 +22,7 @@ import at.hannibal2.skyhanni.config.core.config.Position import at.hannibal2.skyhanni.data.GuiEditManager.Companion.getAbsX import at.hannibal2.skyhanni.data.GuiEditManager.Companion.getAbsY import at.hannibal2.skyhanni.data.GuiEditManager.Companion.getDummySize +import at.hannibal2.skyhanni.utils.LorenzUtils import io.github.moulberry.notenoughupdates.util.Utils import net.minecraft.client.Minecraft import net.minecraft.client.gui.GuiScreen @@ -156,8 +157,7 @@ class GuiPositionEditor(private val positions: List<Position>, private val borde val position = positions[clickedPos] if (position.clicked) return - val shiftHeld = Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) - val dist = if (shiftHeld) 10 else 1 + val dist = if (LorenzUtils.isShiftKeyDown()) 10 else 1 val elementWidth = position.getDummySize(true).x val elementHeight = position.getDummySize(true).y if (keyCode == Keyboard.KEY_DOWN) { |