Skip to content

Commit 38996e8

Browse files
committed
remove the "useShift" setting in container preview as the lockKey is already set to shift by default and they do the same thing
1 parent 78e610e commit 38996e8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/kotlin/com/lambda/module/modules/render/ContainerPreview.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import com.lambda.util.item.ItemUtils.shulkerBoxes
2828
import net.minecraft.block.ShulkerBoxBlock
2929
import net.minecraft.client.font.TextRenderer
3030
import net.minecraft.client.gui.DrawContext
31-
import net.minecraft.client.gui.screen.Screen
3231
import net.minecraft.client.gui.tooltip.TooltipComponent
3332
import net.minecraft.client.render.RenderLayer
3433
import net.minecraft.item.BlockItem
@@ -45,7 +44,6 @@ object ContainerPreview : Module(
4544
tag = ModuleTag.RENDER,
4645
) {
4746
private val lockKey by setting("Lock Key", Bind(KeyCode.LeftShift.code, 0, -1), "Key to lock the tooltip in place for item interaction")
48-
private val useShift by setting("Use Shift", true, "Use shift key to lock tooltip (overrides lock key)")
4947
private val colorTint by setting("Color Tint", true, "Tint the background with the shulker box color")
5048

5149
private val background = Identifier.ofVanilla("textures/gui/container/shulker_box.png")
@@ -71,7 +69,6 @@ object ContainerPreview : Module(
7169
@JvmStatic
7270
fun isLockKeyPressed(): Boolean {
7371
if (!isEnabled) return false
74-
if (useShift) return Screen.hasShiftDown()
7572
val handle = mc.window.handle
7673
return GLFW.glfwGetKey(handle, lockKey.key) == GLFW.GLFW_PRESS
7774
}

0 commit comments

Comments
 (0)