aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWapic <17051068+Wapic@users.noreply.github.com>2025-03-31 11:27:34 +0200
committerGitHub <noreply@github.com>2025-03-31 11:27:34 +0200
commita7e8d67d782d2c5d0d091fdbb2518fa8474de709 (patch)
treef773f09895bccc23e8377e7211e5412b0f3464ce
parent695e1354b1611ecb10ddf599036b213c0b7343c9 (diff)
downloadFirmament-a7e8d67d782d2c5d0d091fdbb2518fa8474de709.tar.gz
Firmament-a7e8d67d782d2c5d0d091fdbb2518fa8474de709.tar.bz2
Firmament-a7e8d67d782d2c5d0d091fdbb2518fa8474de709.zip
Refactor: replace hardcoded values
Co-authored-by: Linnea Gräf <nea@nea.moe>
-rw-r--r--src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt b/src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt
index a717fbe..18dfa3a 100644
--- a/src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt
+++ b/src/main/kotlin/features/inventory/buttons/InventoryButtonEditor.kt
@@ -57,7 +57,7 @@ class InventoryButtonEditor(
}
override fun resize(client: MinecraftClient, width: Int, height: Int) {
- lastGuiRect.move(MC.window.scaledWidth / 2 - 88, MC.window.scaledHeight / 2 - 83)
+ lastGuiRect.move(MC.window.scaledWidth / 2 - lastGuiRect.width / 2, MC.window.scaledHeight / 2 - lastGuiRect.height / 2)
super.resize(client, width, height)
}