From 707652b59e10371cf4826f9f65d653cac528c6bb Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 25 Nov 2025 00:23:57 +0100 Subject: feat: add item list --- .../java/moe/nea/firmament/features/texturepack/CustomScreenLayouts.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/texturePacks/java/moe') diff --git a/src/texturePacks/java/moe/nea/firmament/features/texturepack/CustomScreenLayouts.kt b/src/texturePacks/java/moe/nea/firmament/features/texturepack/CustomScreenLayouts.kt index 10bbeea..e026365 100644 --- a/src/texturePacks/java/moe/nea/firmament/features/texturepack/CustomScreenLayouts.kt +++ b/src/texturePacks/java/moe/nea/firmament/features/texturepack/CustomScreenLayouts.kt @@ -31,6 +31,7 @@ import moe.nea.firmament.mixins.accessor.AccessorHandledScreen import moe.nea.firmament.mixins.accessor.AccessorScreenHandler import moe.nea.firmament.util.ErrorUtil.intoCatch import moe.nea.firmament.util.IdentifierSerializer +import moe.nea.firmament.util.accessors.castAccessor object CustomScreenLayouts : SimplePreparableReloadListener>() { @@ -102,7 +103,7 @@ object CustomScreenLayouts : SimplePreparableReloadListener) { - screen as AccessorHandledScreen + screen.castAccessor() val originalX: Int = (screen.width - screen.backgroundWidth_Firmament) / 2 val originalY: Int = (screen.height - screen.backgroundHeight_Firmament) / 2 val modifiedX = originalX + this.x -- cgit