Skip to content

Commit

Permalink
Fix: GuiEditor Key working in NEUs PV textboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunderblade73 committed Jan 14, 2024
1 parent 9964248 commit 018a614
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class GuiEditManager {
if (isInGui()) return

Minecraft.getMinecraft().currentScreen?.let {
if (it !is GuiInventory && it !is GuiChest && it !is GuiEditSign && it !is GuiProfileViewer) return
if (it !is GuiInventory && it !is GuiChest && it !is GuiEditSign && !(it is GuiProfileViewer && !it.anyTextBoxFocused())) return
if (it is GuiEditSign && !it.isRancherSign()) return
}

Expand Down Expand Up @@ -111,6 +111,8 @@ class GuiEditManager {
fun Position.getAbsX() = getAbsX0(getDummySize(true).x)

fun Position.getAbsY() = getAbsY0(getDummySize(true).y)

fun GuiProfileViewer.anyTextBoxFocused() = this.playerNameTextField.focus || this.inventoryTextField.focus || this.killDeathSearchTextField.focus
}
}

Expand Down

0 comments on commit 018a614

Please sign in to comment.