From 6c9d52040dff6c2fececbaa888f1f20d18f9ff99 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Fri, 9 Sep 2022 20:09:32 +0700 Subject: [PATCH] Fix tickHover not accounting for own hover when returning if it has extended bounds --- .../ru/dbotthepony/mc/otm/client/screen/panels/EditablePanel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/EditablePanel.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/EditablePanel.kt index 3a26239bf..144f850b5 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/EditablePanel.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/EditablePanel.kt @@ -456,7 +456,7 @@ open class EditablePanel @JvmOverloads constructor( mouseY >= absoluteY && mouseY <= absoluteY + height - return hit + return hit || isHovered } isHovered =