Refactor: replace hardcoded values

Co-authored-by: Linnea Gräf <nea@nea.moe>
This commit is contained in:
Wapic
2025-03-31 11:27:34 +02:00
committed by GitHub
parent 695e1354b1
commit a7e8d67d78

View File

@@ -57,7 +57,7 @@ class InventoryButtonEditor(
} }
override fun resize(client: MinecraftClient, width: Int, height: Int) { 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) super.resize(client, width, height)
} }