feat: set default focus for PSH screen

This commit is contained in:
xtex 2023-07-24 11:33:00 +08:00
parent 68b8c73896
commit 968c885dba
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -38,7 +38,7 @@ class ProjectionShellScreen(val level: Level, val pos: BlockPos, val shell: Proj
block.applyFromShell(level, pos, shell) block.applyFromShell(level, pos, shell)
} }
GameInstance.getClient().setScreen(null) GameInstance.getClient().setScreen(null)
}.build()) }.build().apply(::setInitialFocus))
} }
layout.arrangeElements() layout.arrangeElements()
layout.x = (width - layout.width) / 2 layout.x = (width - layout.width) / 2