From b6a86e2737629c12265750449b6a133e0b7770ab Mon Sep 17 00:00:00 2001 From: StavWasPlayZ Date: Wed, 14 Jun 2023 20:59:16 +0300 Subject: [PATCH] Fix options screen being off-center --- build.gradle | 2 +- .../options/instrument/AbstractInstrumentOptionsScreen.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 311d0ccb..015e4255 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { id 'org.parchmentmc.librarian.forgegradle' version '1.+' } -version = '2.2.1.1' +version = '2.2.1.2' group = 'com.cstav.genshinstrument' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'genshinstrument-1.19.2' diff --git a/src/main/java/com/cstav/genshinstrument/client/gui/screens/options/instrument/AbstractInstrumentOptionsScreen.java b/src/main/java/com/cstav/genshinstrument/client/gui/screens/options/instrument/AbstractInstrumentOptionsScreen.java index 92899ab1..f9d8d24c 100644 --- a/src/main/java/com/cstav/genshinstrument/client/gui/screens/options/instrument/AbstractInstrumentOptionsScreen.java +++ b/src/main/java/com/cstav/genshinstrument/client/gui/screens/options/instrument/AbstractInstrumentOptionsScreen.java @@ -121,7 +121,7 @@ protected void init() { initOptionsGrid(grid, rowHelper); grid.setY(40); - grid.setX((grid.getWidth() + getSmallButtonWidth()) / 2 - getHorzPadding() * 2); + grid.setX((width - grid.getWidth()) / 2); addRenderableWidget(grid);