From 968c885dba0252dbdab849ea9d883d9ce0a10a43 Mon Sep 17 00:00:00 2001 From: xtex Date: Mon, 24 Jul 2023 11:33:00 +0800 Subject: [PATCH] feat: set default focus for PSH screen --- common/src/main/kotlin/quaedam/shell/ProjectionShellScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/quaedam/shell/ProjectionShellScreen.kt b/common/src/main/kotlin/quaedam/shell/ProjectionShellScreen.kt index 4db2a7c..d495a9d 100644 --- a/common/src/main/kotlin/quaedam/shell/ProjectionShellScreen.kt +++ b/common/src/main/kotlin/quaedam/shell/ProjectionShellScreen.kt @@ -38,7 +38,7 @@ class ProjectionShellScreen(val level: Level, val pos: BlockPos, val shell: Proj block.applyFromShell(level, pos, shell) } GameInstance.getClient().setScreen(null) - }.build()) + }.build().apply(::setInitialFocus)) } layout.arrangeElements() layout.x = (width - layout.width) / 2