From 6e0ccf35fe04cf5d50850841ec47eccf31bbc65e Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 26 Oct 2022 22:38:53 +0700 Subject: [PATCH] Tick only visible children --- .../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 4783371bd..9b5f3fac1 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 @@ -1576,7 +1576,7 @@ open class EditablePanel @JvmOverloads constructor( open fun tick() { tick++ - for (child in Array(childrenInternal.size) { childrenInternal[it] }) { + for (child in Array(visibleChildrenInternal.size) { visibleChildrenInternal[it] }) { child.tick() } }