Skip to content

Commit

Permalink
Fixed world loading problem
Browse files Browse the repository at this point in the history
Signed-off-by: superblaubeere27 <[email protected]>
  • Loading branch information
superblaubeere27 committed Aug 4, 2021
1 parent aff134b commit 9c1c264
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ object UltralightScreenHook : Listenable {
}
}

val screen = event.screen ?: TitleScreen()
val screen = event.screen ?: if (mc.world != null) return@handler else TitleScreen()
val name = UltralightJsUi.get(screen)?.name ?: return@handler
val page = ThemeManager.page(name) ?: return@handler

Expand Down

0 comments on commit 9c1c264

Please sign in to comment.