generated from MrSphay/codex-agent-repository-kit
Restore intro screen and visible crater test behavior
All checks were successful
Build / build (push) Successful in 9m37s
All checks were successful
Build / build (push) Successful in 9m37s
This commit is contained in:
@@ -22,6 +22,18 @@ public class FirstTimeSetupHandler {
|
||||
|
||||
@SubscribeEvent
|
||||
public static void onClientTick(ClientTickEvent.Post event) {
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
if (!hasChecked && mc.screen instanceof TitleScreen) {
|
||||
hasChecked = true;
|
||||
if (Config.isFirstLaunch()) {
|
||||
pendingShowIntro = true;
|
||||
}
|
||||
}
|
||||
if (pendingShowIntro && mc.screen instanceof TitleScreen) {
|
||||
pendingShowIntro = false;
|
||||
mc.setScreen(new IntroSplashScreen());
|
||||
Config.markFirstLaunchComplete();
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
|
||||
Reference in New Issue
Block a user