From 437439ae1e91976046c65f66a9afef466d145674 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 8 Sep 2022 16:44:31 +0700 Subject: [PATCH] don't make button's skin element yeet itself --- .../mc/otm/client/screen/panels/ButtonPanel.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) } }