From e05f5829d7f4654f13f711074242866a797c5b93 Mon Sep 17 00:00:00 2001 From: downthecrop Date: Mon, 28 Oct 2024 16:38:33 -0700 Subject: [PATCH] Restore original Kondo Fixed mode handling --- plugin-playground/src/main/kotlin/KondoKit/plugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin-playground/src/main/kotlin/KondoKit/plugin.kt b/plugin-playground/src/main/kotlin/KondoKit/plugin.kt index c0de33a..f5073ac 100644 --- a/plugin-playground/src/main/kotlin/KondoKit/plugin.kt +++ b/plugin-playground/src/main/kotlin/KondoKit/plugin.kt @@ -342,8 +342,8 @@ class plugin : Plugin() { altCanvas?.setLocation(0, canvas.y) canvas.setLocation(0, canvas.y) } else { - GameShell.leftMargin = (difference + uiOffset) / 2 - canvas.setLocation(GameShell.leftMargin - (FIXED_WIDTH / 2), canvas.y) + val difference = frame.width - (FIXED_WIDTH + uiOffset + currentScrollPaneWidth) + GameShell.leftMargin = difference / 2 } }