From 40f001fb586c9d09458d7ce909d40c341f8480dc Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 24 Oct 2023 17:39:38 +0700 Subject: [PATCH] Check for visibility of children panel in calculateAbsoluteObstructingRectangles --- .../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 f47b2a27c..981705c2f 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 @@ -646,7 +646,7 @@ open class EditablePanel @JvmOverloads constructor( } for (children in visibleChildrenInternal) { - if (children.isOutsideOfParent || !isObstructing) { + if ((children.isOutsideOfParent || !isObstructing) && children.isVisible()) { result.addAll(children.calculateAbsoluteObstructingRectangles()) } }