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() } }