diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/ButtonPanel.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/ButtonPanel.kt index 82cc35924..b12b0c343 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/ButtonPanel.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/ButtonPanel.kt @@ -329,9 +329,9 @@ open class LargeSquareButtonPanel>( super.innerRender(stack, mouseX, mouseY, partialTick) if (skinElementWinding != null) { - skinElement?.render(stack, x, y, width, height, skinElementWinding) + skinElement?.render(stack, width = width, height = height, winding = skinElementWinding) } else { - skinElement?.render(stack, x, y, width, height) + skinElement?.render(stack, width = width, height = height) } } @@ -380,9 +380,9 @@ open class SmallSquareButtonPanel>( super.innerRender(stack, mouseX, mouseY, partialTick) if (skinElementWinding != null) { - skinElement?.render(stack, x, y, width, height, skinElementWinding) + skinElement?.render(stack, width = width, height = height, winding = skinElementWinding) } else { - skinElement?.render(stack, x, y, width, height) + skinElement?.render(stack, width = width, height = height) } }